Property | Type | Description | |
---|---|---|---|
ThrowIOSocketException | void |
Method | Description | |
---|---|---|
AwaitableSocketAsyncEventArgs ( |
Initializes the event args.
|
|
GetAwaiter ( ) : AwaitableSocketAsyncEventArgs |
Gets this instance.
|
|
GetResult ( ) : int |
Gets the result of the completion operation. Unlike Task's awaiter's GetResult, this does not block until the operation completes: it must only be used once the operation has completed. This is handled implicitly by await. |
|
OnCompleted ( Action continuation ) : void |
Queues the provided continuation to be executed once the operation has completed.
|
|
ReceiveAsync ( ) : AwaitableSocketAsyncEventArgs |
Initiates a receive operation on the associated socket.
|
|
UnsafeOnCompleted ( Action continuation ) : void |
Same as OnCompleted(Action)
|
Method | Description | |
---|---|---|
ThrowIOSocketException ( ) : void |
public AwaitableSocketAsyncEventArgs ( |
||
socket | The associated socket. | |
buffer | byte | The buffer to use for all operations. |
return | System.Buffers |
public GetAwaiter ( ) : AwaitableSocketAsyncEventArgs | ||
return | AwaitableSocketAsyncEventArgs |
public OnCompleted ( Action continuation ) : void | ||
continuation | Action | |
return | void |
public ReceiveAsync ( ) : AwaitableSocketAsyncEventArgs | ||
return | AwaitableSocketAsyncEventArgs |
public UnsafeOnCompleted ( Action continuation ) : void | ||
continuation | Action | |
return | void |