Created
March 7, 2020 20:37
-
-
Save rhysstubbs/c74aff77c701fdfb5538251006240135 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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