コード例 #1
0
        private CloudBlockBlob CreateBlob <T>()
        {
            var biggyContainer = this.blobClient.GetContainerReference(this.containerName);
            var blobName       = AzureBlobCore.GetBlobName <T>();

            biggyContainer.CreateIfNotExistsAsync().GetAwaiter().GetResult();

            var blob = biggyContainer.GetBlockBlobReference(blobName);

            return(blob);
        }
コード例 #2
0
        public void SaveAll <T>(IEnumerable <T> items)
        {
            var blob = this.CreateBlob <T>();

            AzureBlobCore.AzureBlobCoreSaveToBlob(items, blob);
        }