Skip to main content

Class MeadowSynchronizationContext

A SynchronizationContext for Meadow devices

Assembly: Meadow.dll
View Source
Declaration
public class MeadowSynchronizationContext : SynchronizationContext

Inheritance: System.Object -> System.Threading.SynchronizationContext

Methods

Post(SendOrPostCallback, object)

When overridden in a derived class, dispatches an asynchronous message to a synchronization context.

View Source
Declaration
public override void Post(SendOrPostCallback action, object state)
Parameters
TypeNameDescription
System.Threading.SendOrPostCallbackaction
System.ObjectstateThe object passed to the delegate.

CreateCopy()

When overridden in a derived class, creates a copy of the synchronization context.

View Source
Declaration
public override SynchronizationContext CreateCopy()
Returns

System.Threading.SynchronizationContext: A new System.Threading.SynchronizationContext object.### Send(SendOrPostCallback, object) When overridden in a derived class, dispatches a synchronous message to a synchronization context.

View Source
Declaration
public override void Send(SendOrPostCallback d, object state)
Parameters
TypeNameDescription
System.Threading.SendOrPostCallbackdThe System.Threading.SendOrPostCallback delegate to call.
System.ObjectstateThe object passed to the delegate.
Exceptions

System.NotSupportedException
The method was called in a Windows Store app. The implementation of System.Threading.SynchronizationContext for Windows Store apps does not support the System.Threading.SynchronizationContext.Send(System.Threading.SendOrPostCallback%2cSystem.Object) method.

OperationStarted()

When overridden in a derived class, responds to the notification that an operation has started.

View Source
Declaration
public override void OperationStarted()

OperationCompleted()

When overridden in a derived class, responds to the notification that an operation has completed.

View Source
Declaration
public override void OperationCompleted()