コード例 #1
0
ファイル: BlobService.cs プロジェクト: garenyondem/rupload
        private async Task InitializeAsync()
        {
            this.blobServiceConfig = await jsonConfigService.GetSettings();

            if (this.blobServiceConfig == null)
            {
                this.blobServiceConfig = new BlobServiceConfig()
                {
                    UseDevelopmentStorage = true
                };
                await jsonConfigService.SaveSetting(this.blobServiceConfig);
            }
            CloudStorageAccount account = CloudStorageAccount.Parse(this.blobServiceConfig.GetConnectionString());

            blobClient = account.CreateCloudBlobClient();
        }
コード例 #2
0
ファイル: BlobService.cs プロジェクト: garenyondem/rupload
 public BlobService(BlobServiceConfig blobServiceConfig, IJsonConfigService <BlobServiceConfig> jsonConfigService)
 {
     this.blobServiceConfig = blobServiceConfig;
     this.jsonConfigService = jsonConfigService;
     Initialization         = InitializeAsync();
 }