diff --git a/src/OrasProject.Oras/Content/Extensions.cs b/src/OrasProject.Oras/Content/Extensions.cs index d29241b..0d33393 100644 --- a/src/OrasProject.Oras/Content/Extensions.cs +++ b/src/OrasProject.Oras/Content/Extensions.cs @@ -30,7 +30,7 @@ public static class Extensions /// /// /// - public static async Task> GetSuccessorsAsync(this IFetchable fetcher, Descriptor node, CancellationToken cancellationToken) + public static async Task> GetSuccessorsAsync(this IFetchable fetcher, Descriptor node, CancellationToken cancellationToken = default) { switch (node.MediaType) { @@ -71,7 +71,7 @@ public static async Task> GetSuccessorsAsync(this IFetch /// /// /// - public static async Task FetchAllAsync(this IFetchable fetcher, Descriptor desc, CancellationToken cancellationToken) + public static async Task FetchAllAsync(this IFetchable fetcher, Descriptor desc, CancellationToken cancellationToken = default) { var stream = await fetcher.FetchAsync(desc, cancellationToken).ConfigureAwait(false); return await stream.ReadAllAsync(desc, cancellationToken).ConfigureAwait(false); @@ -86,7 +86,7 @@ public static async Task FetchAllAsync(this IFetchable fetcher, Descript /// /// /// - internal static async Task ReadAllAsync(this Stream stream, Descriptor descriptor, CancellationToken cancellationToken) + public static async Task ReadAllAsync(this Stream stream, Descriptor descriptor, CancellationToken cancellationToken = default) { if (descriptor.Size < 0) {