public AksService(IOptions <KubekOptions> kubekOptionsValue,
                   IStorageWorker storageWorker, ILogger <AksService> logger)
 {
     this.storageWorker = storageWorker;
     this.logger        = logger;
     kubekOptions       = kubekOptionsValue.Value;
 }
        /// <summary>
        /// Creates a new bucket.
        /// </summary>
        /// <param name="worker">The worker.</param>
        /// <param name="key">Unique key.</param>
        /// <param name="tags">Associated tags.</param>
        /// <param name="version">Version of this bucket.</param>
        public StorageBucket(
            IStorageWorker worker,
            string key,
            string tags,
            int version)
        {
            _worker  = worker;
            _version = _manifestVersion = version;

            Key  = key;
            Tags = tags;
        }
Exemple #3
0
 public StorageManager(IStorageWorker storageWorker, IAdalLegacyCacheManager adalLegacyCacheManager = null)
 {
     _storageWorker         = storageWorker;
     AdalLegacyCacheManager = adalLegacyCacheManager ?? new AdalLegacyCacheManager(PlatformProxyFactory.GetPlatformProxy().CreateLegacyCachePersistence());
 }
 public SendEmail(IStorageWorker storageWorker) => this.storageWorker = storageWorker;
Exemple #5
0
 public StorageApartmentWriteRepository(IStorageWorker worker)
 {
     this.worker = worker;
 }
Exemple #6
0
 /// <summary>
 /// Creates a new StorageService.
 /// </summary>
 /// <param name="worker">The worker to use. Generally StorageWorker.</param>
 public StorageService(IStorageWorker worker)
 {
     _worker           = worker;
     _worker.OnDelete += Worker_OnDelete;
 }
 public StorageManager(IPlatformProxy platformProxy, IStorageWorker storageWorker, IAdalLegacyCacheManager adalLegacyCacheManager = null)
 {
     _storageWorker         = storageWorker;
     AdalLegacyCacheManager = adalLegacyCacheManager ?? new AdalLegacyCacheManager(platformProxy.CreateLegacyCachePersistence());
 }