UploadFromStream() 공개 메소드

Uploads a stream to a block blob.
public UploadFromStream ( Stream source ) : void
source Stream The stream providing the blob content.
리턴 void
 /// <summary>
 /// Сохраняет файл в хранилище
 /// </summary>
 /// <param name="localUri"> Адрес файла </param>
 /// <param name="file"> Поток </param>
 public void Save(string localUri, Stream stream)
 {
     CloudBlob blob = new CloudBlob(localUri, _client);
     stream.Seek(0, SeekOrigin.Begin);
     blob.UploadFromStream(stream, new BlobRequestOptions()
     {
         RetryPolicy = RetryPolicies.RetryExponential(
             RetryPolicies.DefaultClientRetryCount,
             RetryPolicies.DefaultClientBackoff)
     });
 }