Beispiel #1
0
        public Worker(ILogger <Worker> logger, IOptions <AzureSyncOptions> options, ICloudStorageService cloudStorageService)
        {
            this.logger              = logger;
            this.options             = options.Value;
            this.cloudStorageService = cloudStorageService;

            watchers = new List <DirectoryWatcher>();
        }
Beispiel #2
0
        public AzureCloudStorageService(ILogger <AzureCloudStorageService> logger, IOptions <AzureSyncOptions> options)
        {
            this.logger  = logger;
            this.options = options.Value;

            containerClient = new BlobServiceClient(this.options.ConnectionString)
                              .GetBlobContainerClient(this.options.ContainerName);
        }