C# 클래스 System.IO.FileStream.AsyncCopyToAwaitable

Used by CopyToAsync to enable awaiting the result of an overlapped I/O operation with minimal overhead.
상속: ICriticalNotifyCompletion
파일 보기 프로젝트 열기: dotnet/corefx

Private Properties

프로퍼티 타입 설명
AsyncCopyToAwaitable System.Buffers
IOCallback void
MarkCompleted void
ResetForNextOperation void

공개 메소드들

메소드 설명
GetAwaiter ( ) : AsyncCopyToAwaitable
GetResult ( ) : void
OnCompleted ( Action continuation ) : void
UnsafeOnCompleted ( Action continuation ) : void

비공개 메소드들

메소드 설명
AsyncCopyToAwaitable ( FileStream fileStream ) : System.Buffers

Initialize the awaitable.

IOCallback ( uint errorCode, uint numBytes, NativeOverlapped pOVERLAP ) : void

Overlapped callback: store the results, then invoke the continuation delegate.

MarkCompleted ( ) : void

Called when it's known that the I/O callback for an operation will not be invoked but we'll still be awaiting the awaitable.

ResetForNextOperation ( ) : void

Reset state to prepare for the next read operation.

메소드 상세

GetAwaiter() 공개 메소드

public GetAwaiter ( ) : AsyncCopyToAwaitable
리턴 AsyncCopyToAwaitable

GetResult() 공개 메소드

public GetResult ( ) : void
리턴 void

OnCompleted() 공개 메소드

public OnCompleted ( Action continuation ) : void
continuation Action
리턴 void

UnsafeOnCompleted() 공개 메소드

public UnsafeOnCompleted ( Action continuation ) : void
continuation Action
리턴 void