55using System . Threading ;
66using System . Threading . Tasks ;
77using ManagedCode . Communication ;
8+ using ManagedCode . Communication . Extensions ;
89using ManagedCode . MimeTypes ;
910using ManagedCode . Storage . Core . Models ;
1011
@@ -134,7 +135,7 @@ public Task<Result<BlobMetadata>> UploadAsync(FileInfo fileInfo, UploadOptions o
134135 public Task < Result < LocalFile > > DownloadAsync ( string fileName , CancellationToken cancellationToken = default )
135136 {
136137 var file = new LocalFile ( ) ;
137- DownloadOptions options = new ( ) { FileName = fileName } ;
138+ DownloadOptions options = new ( ) { FileName = fileName } ;
138139 return DownloadInternalAsync ( file , options , cancellationToken ) ;
139140 }
140141
@@ -158,7 +159,7 @@ public Task<Result<LocalFile>> DownloadAsync(Action<DownloadOptions> action, Can
158159
159160 public Task < Result < bool > > DeleteAsync ( string fileName , CancellationToken cancellationToken = default )
160161 {
161- DeleteOptions options = new ( ) { FileName = fileName } ;
162+ DeleteOptions options = new ( ) { FileName = fileName } ;
162163 return DeleteInternalAsync ( options , cancellationToken ) ;
163164 }
164165
@@ -176,7 +177,7 @@ public Task<Result<bool>> DeleteAsync(Action<DeleteOptions> action, Cancellation
176177
177178 public Task < Result < bool > > ExistsAsync ( string fileName , CancellationToken cancellationToken = default )
178179 {
179- ExistOptions options = new ( ) { FileName = fileName } ;
180+ ExistOptions options = new ( ) { FileName = fileName } ;
180181 return ExistsInternalAsync ( options , cancellationToken ) ;
181182 }
182183
@@ -194,7 +195,7 @@ public Task<Result<bool>> ExistsAsync(Action<ExistOptions> action, CancellationT
194195
195196 public Task < Result < BlobMetadata > > GetBlobMetadataAsync ( string fileName , CancellationToken cancellationToken = default )
196197 {
197- MetadataOptions options = new ( ) { FileName = fileName } ;
198+ MetadataOptions options = new ( ) { FileName = fileName } ;
198199 return GetBlobMetadataInternalAsync ( options , cancellationToken ) ;
199200 }
200201
@@ -214,7 +215,7 @@ public Task<Result<BlobMetadata>> GetBlobMetadataAsync(Action<MetadataOptions> a
214215
215216 public Task < Result > SetLegalHoldAsync ( bool hasLegalHold , string fileName , CancellationToken cancellationToken = default )
216217 {
217- LegalHoldOptions options = new ( ) { FileName = fileName } ;
218+ LegalHoldOptions options = new ( ) { FileName = fileName } ;
218219 return SetLegalHoldInternalAsync ( hasLegalHold , options , cancellationToken ) ;
219220 }
220221
@@ -232,7 +233,7 @@ public Task<Result> SetLegalHoldAsync(bool hasLegalHold, Action<LegalHoldOptions
232233
233234 public Task < Result < bool > > HasLegalHoldAsync ( string fileName , CancellationToken cancellationToken = default )
234235 {
235- LegalHoldOptions options = new ( ) { FileName = fileName } ;
236+ LegalHoldOptions options = new ( ) { FileName = fileName } ;
236237 return HasLegalHoldInternalAsync ( options , cancellationToken ) ;
237238 }
238239
0 commit comments