Skip to content

Commit

Permalink
Add Name and Parameters to IStorageProvider interface
Browse files Browse the repository at this point in the history
The IStorageProvider interface now requires implementing classes to provide a Name property and a Parameters property. The ScpProvider class has been updated to include these new properties, but their implementations currently throw NotImplementedException.
  • Loading branch information
bvdcode committed Dec 19, 2024
1 parent 9e748dd commit 87a3547
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/Octockup.Server/Providers/IStorageProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
{
public interface IStorageProvider
{
string Name { get; }
IEnumerable<string> Parameters { get; }
IEnumerable<RemoteFileInfo> GetAllFiles();
}
}
4 changes: 4 additions & 0 deletions Sources/Octockup.Server/Providers/ScpProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
{
public class ScpProvider : IStorageProvider
{
public string Name => throw new NotImplementedException();

public IEnumerable<string> Parameters => throw new NotImplementedException();

public IEnumerable<RemoteFileInfo> GetAllFiles()
{
throw new NotImplementedException();
Expand Down

0 comments on commit 87a3547

Please sign in to comment.