Skip to content

Instantly share code, notes, and snippets.

@rhysstubbs
Last active March 2, 2020 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rhysstubbs/4ff36bd7dfb4fbb46176a675880903db to your computer and use it in GitHub Desktop.
Save rhysstubbs/4ff36bd7dfb4fbb46176a675880903db to your computer and use it in GitHub Desktop.
Interface Example in C#
using System.IO;
using System.Threading.Tasks;
using Example.Storage.Responses;
namespace Example.Storage.Interfaces
{
public interface IFileUploadService
{
Task<UploadResult> UploadAsync(Stream stream, string filename, string path = null);
void DeleteDirectoryAsync(string path);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment