Skip to content

Instantly share code, notes, and snippets.

@rhysstubbs
Created March 7, 2020 20:37
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/c74aff77c701fdfb5538251006240135 to your computer and use it in GitHub Desktop.
Save rhysstubbs/c74aff77c701fdfb5538251006240135 to your computer and use it in GitHub Desktop.
namespace Example.Storage
{
public class Example
{
protected readonly IFileUploadService UploadService;
public Example(IFileUploadService uploadService)
{
this.UploadService = uploadService;
}
public void SaveFile(Stream file)
{
await this.UploadService.UploadAsync(file, "example/directory");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment