Class SocketAwaitableEventArgs
- Namespace
- Alternet.Scripter.Debugger.Dap.Connections
- Assembly
- Alternet.Scripter.Debugger.Dap.v9.dll
Awaitable SocketAsyncEventArgs, where awaiting the args yields either the BytesTransferred or throws the relevant socket exception
public class SocketAwaitableEventArgs : SocketAsyncEventArgs, IDisposable, ICriticalNotifyCompletion, INotifyCompletion
- Inheritance
-
SocketAwaitableEventArgs
- Implements
Constructors
- SocketAwaitableEventArgs(PipeScheduler)
Create a new SocketAwaitableEventArgs instance, optionally providing a scheduler for callbacks
Properties
- IsCompleted
Indicates whether the current operation is complete; used as part of "await"
Methods
- Abort(SocketError)
Abort the current async operation (and prevent future operations)
- Complete()
Marks the operation as complete - this should be invoked whenever a SocketAsyncEventArgs operation returns false
- GetAwaiter()
Get the awaiter for this instance; used as part of "await"
- GetResult()
Gets the result of the async operation is complete; used as part of "await"
- OnCompleted(Action)
Schedules a continuation for this operation; used as part of "await"
- OnCompleted(SocketAsyncEventArgs)
Invoked automatically when an operation completes asynchronously
- UnsafeOnCompleted(Action)
Schedules a continuation for this operation; used as part of "await"