Пример #1
0
        public StorageTableRepository(ICloudStorageAccountProvider cloudStorageAccountProvider, string tableName)
        {
            var cloudStorageAccount = cloudStorageAccountProvider.GetCloudStorageAccount();
            var tableClient         = cloudStorageAccount.CreateCloudTableClient();

            CloudTable = tableClient.GetTableReference(tableName);
        }
Пример #2
0
 public BindingProvider(ILoggerFactory loggerFactory, ICloudStorageAccountProvider storageAccountProvider,
                        INameResolver nameResolver)
 {
     this.loggerFactory          = loggerFactory;
     this.storageAccountProvider = storageAccountProvider;
     this.nameResolver           = nameResolver;
 }
Пример #3
0
        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);
        }
Пример #5
0
 public NicoNicoMyListRepository(ICloudStorageAccountProvider cloudStorageAccountProvider)
     : base(cloudStorageAccountProvider, @"nicoNicoMyList")
 {
 }
Пример #6
0
 public WeightMeasurementRepository(ICloudStorageAccountProvider cloudStorageAccountProvider)
     : base(cloudStorageAccountProvider, @"weightmeasurement")
 {
 }
Пример #7
0
 public CloudTableProvider(ICloudStorageAccountProvider storageAccountProvider, string tablePrefix)
 {
     _storageAccountProvider = storageAccountProvider;
     _tablePrefix = tablePrefix;
 }
Пример #8
0
 public CloudTableProvider(ICloudStorageAccountProvider storageAccountProvider)
 {
     _storageAccountProvider = storageAccountProvider;
     _tablePrefix = "";
 }
 public WithingsSleepRepository(ICloudStorageAccountProvider cloudStorageAccountProvider)
     : base(cloudStorageAccountProvider, "withingssleep")
 {
 }
Пример #10
0
 public SleepDataRepository(ICloudStorageAccountProvider cloudStorageAccountProvider)
     : base(cloudStorageAccountProvider, "sleepdata")
 {
 }
Пример #11
0
 public ThermohygrometerRepository(ICloudStorageAccountProvider cloudStorageAccountProvider)
     : base(cloudStorageAccountProvider, "thermohygrometer")
 {
 }
Пример #12
0
 public CloudTableProvider(ICloudStorageAccountProvider storageAccountProvider, string tablePrefix)
 {
     _storageAccountProvider = storageAccountProvider;
     _tablePrefix            = tablePrefix;
 }
Пример #13
0
 public CloudTableProvider(ICloudStorageAccountProvider storageAccountProvider)
 {
     _storageAccountProvider = storageAccountProvider;
     _tablePrefix            = "";
 }
Пример #14
0
 public LocationEnteredOrExitedRepository(ICloudStorageAccountProvider cloudStorageAccountProvider)
     : base(cloudStorageAccountProvider, "locationEnteredOrExited")
 {
 }
Пример #15
0
 public IFTTTRepository(ICloudStorageAccountProvider cloudStorageAccountProvider)
     : base(cloudStorageAccountProvider, "ifttt")
 {
 }