mirror of
https://github.com/azaion/admin.git
synced 2026-04-22 12:46:33 +00:00
put StreamToString to extensions
This commit is contained in:
@@ -52,5 +52,6 @@ public static class Security
|
||||
int bytesRead;
|
||||
while ((bytesRead = await cryptoStream.ReadAsync(buffer, cancellationToken)) > 0)
|
||||
await toStream.WriteAsync(buffer.AsMemory(0, bytesRead), cancellationToken);
|
||||
toStream.Seek(0, SeekOrigin.Begin);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user