public FileShareServiceController(IHttpContextAccessor httpContextAccessor, FileShareService fileShareService, IConfiguration configuration, IOptions <FileShareServiceConfiguration> fileShareServiceConfiguration) : base(httpContextAccessor) { this.fileShareService = fileShareService; ErrorsCreateBatch = new Dictionary <string, string> { { "source", "RequestBody" }, { "description", "Either body is null or malformed." } }; ErrorsPutBlocksInFile = new Dictionary <string, string> { { "source", "BatchId" }, { "description", "Invalid or non-existing batch ID." } }; ErrorsCommitBatch = new Dictionary <string, string> { { "source", "BatchId" }, { "description", "BatchId does not exist." } }; ErrorsAddFileinBatch = new Dictionary <string, string> { { "source", "FileError" }, { "description", "Error while creating file" } }; this.configuration = configuration; this.fileShareServiceConfiguration = fileShareServiceConfiguration; }
public Home() { InitializeComponent(); FileShareService.StartListener(); }