Exemple #1
0
        public StorageTableRepository(ICloudStorageAccountProvider cloudStorageAccountProvider, string tableName)
        {
            var cloudStorageAccount = cloudStorageAccountProvider.GetCloudStorageAccount();
            var tableClient         = cloudStorageAccount.CreateCloudTableClient();

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