Пример #1
0
        public async Task UploadFromStreamAsync(Stream stream)
        {
            stream.Position = 0;
            await Blob.UploadFromStreamAsync(stream);

            await SetContentTypeAsync(MimeTypeMap.GetContentTypeFromFilename(_filename));
        }
Пример #2
0
        public async Task UploadTextAsync(string text)
        {
            await Blob.UploadTextAsync(text);

            await SetContentTypeAsync(MimeTypeMap.GetContentTypeFromFilename(_filename));
        }