Class IOSSynchronizationContext
public class IOSSynchronizationContext : SynchronizationContext
- Inheritance
-
IOSSynchronizationContext
- Inherited Members
Constructors
IOSSynchronizationContext(IOSRunLoop)
public IOSSynchronizationContext(IOSRunLoop iOSRunLoop)
Parameters
iOSRunLoopIOSRunLoop
Methods
CreateCopy()
When overridden in a derived class, creates a copy of the synchronization context.
public override SynchronizationContext CreateCopy()
Returns
- SynchronizationContext
A new SynchronizationContext object.
OperationCompleted()
When overridden in a derived class, responds to the notification that an operation has completed.
public override void OperationCompleted()
OperationStarted()
When overridden in a derived class, responds to the notification that an operation has started.
public override void OperationStarted()
Post(SendOrPostCallback, object?)
When overridden in a derived class, dispatches an asynchronous message to a synchronization context.
public override void Post(SendOrPostCallback d, object? state)
Parameters
dSendOrPostCallbackThe SendOrPostCallback delegate to call.
stateobjectThe object passed to the delegate.
Send(SendOrPostCallback, object?)
When overridden in a derived class, dispatches a synchronous message to a synchronization context.
public override void Send(SendOrPostCallback d, object? state)
Parameters
dSendOrPostCallbackThe SendOrPostCallback delegate to call.
stateobjectThe object passed to the delegate.
Exceptions
- NotSupportedException
The method was called in a Windows Store app. The implementation of SynchronizationContext for Windows Store apps does not support the Send(SendOrPostCallback, object) method.
Wait(nint[], bool, int)
Waits for any or all the elements in the specified array to receive a signal.
public override int Wait(nint[] waitHandles, bool waitAll, int millisecondsTimeout)
Parameters
waitHandlesnint[]An array of type nint that contains the native operating system handles.
waitAllboolmillisecondsTimeoutintThe number of milliseconds to wait, or Infinite (-1) to wait indefinitely.
Returns
- int
The array index of the object that satisfied the wait.
Exceptions
- ArgumentNullException
waitHandlesis null.