예제 #1
0
 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;
 }
예제 #2
0
 public Home()
 {
     InitializeComponent();
     FileShareService.StartListener();
 }