Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ WriteAsyncInternal()

async ValueTask System.Security.Cryptography.CryptoStream.WriteAsyncInternal ( ReadOnlyMemory< byte > buffer,
CancellationToken cancellationToken = default(CancellationToken) )
inlineprivate

Definition at line 410 of file CryptoStream.cs.

411 {
412 await AsyncActiveSemaphore.WaitAsync(cancellationToken).ConfigureAwait(continueOnCapturedContext: false);
413 try
414 {
415 await WriteAsyncCore(buffer, cancellationToken, useAsync: true).ConfigureAwait(continueOnCapturedContext: false);
416 }
417 finally
418 {
420 }
421 }
async ValueTask WriteAsyncCore(ReadOnlyMemory< byte > buffer, CancellationToken cancellationToken, bool useAsync)
new ConfiguredTaskAwaitable< TResult > ConfigureAwait(bool continueOnCapturedContext)
Definition Task.cs:226

References System.Security.Cryptography.CryptoStream._lazyAsyncActiveSemaphore, System.Security.Cryptography.CryptoStream.AsyncActiveSemaphore, System.buffer, System.cancellationToken, System.Threading.Tasks.Task< TResult >.ConfigureAwait(), System.Threading.SemaphoreSlim.Release(), System.Threading.SemaphoreSlim.WaitAsync(), and System.Security.Cryptography.CryptoStream.WriteAsyncCore().

Referenced by System.Security.Cryptography.CryptoStream.WriteAsync(), and System.Security.Cryptography.CryptoStream.WriteAsync().