/// <summary> /// Provides customization ability if you want to create your own /// IStorageAccountFactory implementation. /// </summary> public static IServiceCollection AddAzureStorage(this IServiceCollection services, IStorageAccountFactory factory) { services.AddSingleton <IStorageAccountFactory>(factory); services.AddHostedService <AzureStorage>(); return(services); }
public DemoAzureStorageQueueService(ILogger <DemoQueueListenerService> logger, IStorageAccountFactory storageAccountFactory) { Logger = logger; StorageAccountFactory = storageAccountFactory; StorageAccountFactory.LoadStorageAccounts(); StorageAccount = StorageAccountFactory.GetAccount("imageStorage"); CloudQueue = StorageAccount.CreateCloudQueueClient().GetQueueReference("incoming"); }
public FilesStorageService(IStorageAccountFactory storageAccountFactory) { _storageAccountFactory = storageAccountFactory; _lazyFilesContainer = new Lazy <CloudBlobContainer>(GetFilesContainer); }
public DemoQueueFeedService(ILogger <DemoQueueListenerService> logger, IStorageAccountFactory storageAccountFactory) : base(logger, storageAccountFactory) { }
public AzureStorage(IStorageAccountFactory storageAccountFactory, ILogger <AzureStorage> logger) { _storageAccountFactory = storageAccountFactory; Logger = logger; }