public StorageTableRepository(ICloudStorageAccountProvider cloudStorageAccountProvider, string tableName) { var cloudStorageAccount = cloudStorageAccountProvider.GetCloudStorageAccount(); var tableClient = cloudStorageAccount.CreateCloudTableClient(); CloudTable = tableClient.GetTableReference(tableName); }
public BindingProvider(ILoggerFactory loggerFactory, ICloudStorageAccountProvider storageAccountProvider, INameResolver nameResolver) { this.loggerFactory = loggerFactory; this.storageAccountProvider = storageAccountProvider; this.nameResolver = nameResolver; }
public ImageTableStorage(IUserNameProvider userNameProvider, ICloudStorageAccountProvider cloudStorageAccountProvider, IConnectionStringProvider connectionStringProvider) { this.userNameProvider = userNameProvider; this.connectionStringProvider = connectionStringProvider; cloudStorageAccount = cloudStorageAccountProvider.CloudStorageAccount; var tableClient = cloudStorageAccount.CreateCloudTableClient(); imageTable = tableClient.GetTableReference(userNameProvider.UserName); blobServiceClient = cloudStorageAccountProvider.BlobServiceClient; blobContainerClient = blobServiceClient.GetBlobContainerClient(userNameProvider.UserName); }
public ImageTableStorage(ICloudStorageAccountProvider cloudStorageAccountProvider, IUserNameProvider userNameProvider) { this.cloudStorageAccountProvider = cloudStorageAccountProvider; this.userNameProvider = userNameProvider; var blobClient = this.cloudStorageAccountProvider.BlobStorageAccount.CreateCloudBlobClient(); this.cloudBlobContainer = blobClient.GetContainerReference(this.userNameProvider.UserName); var tableClient = this.cloudStorageAccountProvider.TableStorageAccount.CreateCloudTableClient(); this.cloudTable = tableClient.GetTableReference(this.userNameProvider.UserName); }
public NicoNicoMyListRepository(ICloudStorageAccountProvider cloudStorageAccountProvider) : base(cloudStorageAccountProvider, @"nicoNicoMyList") { }
public WeightMeasurementRepository(ICloudStorageAccountProvider cloudStorageAccountProvider) : base(cloudStorageAccountProvider, @"weightmeasurement") { }
public CloudTableProvider(ICloudStorageAccountProvider storageAccountProvider, string tablePrefix) { _storageAccountProvider = storageAccountProvider; _tablePrefix = tablePrefix; }
public CloudTableProvider(ICloudStorageAccountProvider storageAccountProvider) { _storageAccountProvider = storageAccountProvider; _tablePrefix = ""; }
public WithingsSleepRepository(ICloudStorageAccountProvider cloudStorageAccountProvider) : base(cloudStorageAccountProvider, "withingssleep") { }
public SleepDataRepository(ICloudStorageAccountProvider cloudStorageAccountProvider) : base(cloudStorageAccountProvider, "sleepdata") { }
public ThermohygrometerRepository(ICloudStorageAccountProvider cloudStorageAccountProvider) : base(cloudStorageAccountProvider, "thermohygrometer") { }
public LocationEnteredOrExitedRepository(ICloudStorageAccountProvider cloudStorageAccountProvider) : base(cloudStorageAccountProvider, "locationEnteredOrExited") { }
public IFTTTRepository(ICloudStorageAccountProvider cloudStorageAccountProvider) : base(cloudStorageAccountProvider, "ifttt") { }