fixes cancellation token default value
This commit is contained in:
parent
3a2129a8b3
commit
02624731c2
@ -4,7 +4,7 @@ namespace Piwigo.Client;
|
|||||||
|
|
||||||
public static class FileInfoExtensions
|
public static class FileInfoExtensions
|
||||||
{
|
{
|
||||||
public static async Task<string> CalculateMd5SumAsync(this FileInfo file, CancellationToken cancellationToken)
|
public static async Task<string> CalculateMd5SumAsync(this FileInfo file, CancellationToken cancellationToken = default)
|
||||||
{
|
{
|
||||||
using var md5 = MD5.Create();
|
using var md5 = MD5.Create();
|
||||||
await using var stream = file.Open(FileMode.Open, FileAccess.Read, FileShare.Read);
|
await using var stream = file.Open(FileMode.Open, FileAccess.Read, FileShare.Read);
|
||||||
|
Loading…
Reference in New Issue
Block a user