@@ -238,15 +238,15 @@ public bool TryGetCustomFormat<T>(string formatId, out T value)
238238 return false ;
239239 }
240240
241- public Task < string ? > GetTextAsync ( CancellationToken ct = default ) => GetAsAsync < string > ( StandardDataFormats . Text , ct ) ;
242- public Task < Uri ? > GetUriAsync ( CancellationToken ct = default ) => GetAsAsync < Uri > ( StandardDataFormats . WebLink , ct ) ;
243- public Task < string ? > GetHtmlAsync ( CancellationToken ct = default ) => GetAsAsync < string > ( StandardDataFormats . Html , ct ) ;
244- public Task < string ? > GetRtfAsync ( CancellationToken ct = default ) => GetAsAsync < string > ( StandardDataFormats . Rtf , ct ) ;
245- public async Task < IReadOnlyList < IStorageItem > > GetFilesAsync ( CancellationToken ct = default )
241+ public Task < string ? > GetTextAsync ( CancellationToken cancellationToken = default ) => GetAsAsync < string > ( StandardDataFormats . Text , cancellationToken ) ;
242+ public Task < Uri ? > GetUriAsync ( CancellationToken cancellationToken = default ) => GetAsAsync < Uri > ( StandardDataFormats . WebLink , cancellationToken ) ;
243+ public Task < string ? > GetHtmlAsync ( CancellationToken cancellationToken = default ) => GetAsAsync < string > ( StandardDataFormats . Html , cancellationToken ) ;
244+ public Task < string ? > GetRtfAsync ( CancellationToken cancellationToken = default ) => GetAsAsync < string > ( StandardDataFormats . Rtf , cancellationToken ) ;
245+ public async Task < IReadOnlyList < IStorageItem > > GetFilesAsync ( CancellationToken cancellationToken = default )
246246 {
247247 if ( ! _formatEntries . TryGetValue ( StandardDataFormats . StorageItems , out var entry ) )
248248 return Array . Empty < IStorageItem > ( ) ;
249- var resolved = await entry . ResolveAsync ( ct ) . ConfigureAwait ( false ) ;
249+ var resolved = await entry . ResolveAsync ( cancellationToken ) . ConfigureAwait ( false ) ;
250250 return resolved switch
251251 {
252252 IStorageItem [ ] arr => arr ,
@@ -255,12 +255,12 @@ public async Task<IReadOnlyList<IStorageItem>> GetFilesAsync(CancellationToken c
255255 _ => Array . Empty < IStorageItem > ( ) ,
256256 } ;
257257 }
258- public Task < RandomAccessStreamReference ? > GetBitmapAsync ( CancellationToken ct = default ) =>
259- GetAsAsync < RandomAccessStreamReference > ( StandardDataFormats . Bitmap , ct ) ;
260- public async Task < T ? > GetCustomFormatAsync < T > ( string formatId , CancellationToken ct = default )
258+ public Task < RandomAccessStreamReference ? > GetBitmapAsync ( CancellationToken cancellationToken = default ) =>
259+ GetAsAsync < RandomAccessStreamReference > ( StandardDataFormats . Bitmap , cancellationToken ) ;
260+ public async Task < T ? > GetCustomFormatAsync < T > ( string formatId , CancellationToken cancellationToken = default )
261261 {
262262 if ( ! _formatEntries . TryGetValue ( formatId , out var entry ) ) return default ;
263- var v = await entry . ResolveAsync ( ct ) . ConfigureAwait ( false ) ;
263+ var v = await entry . ResolveAsync ( cancellationToken ) . ConfigureAwait ( false ) ;
264264 return v is T cast ? cast : default ;
265265 }
266266
0 commit comments