Table of Contents

Class NativeEventDispatcher

Namespace
nanoFramework.Runtime.Events
Assembly
nanoFramework.Runtime.Events.dll

Initializes a new instance of the NativeEventDispatcher class.

public class NativeEventDispatcher : IDisposable
Inheritance
NativeEventDispatcher
Implements
Derived
Inherited Members
Extension Methods

Constructors

NativeEventDispatcher(string, ulong)

Initializes a new instance of the NativeEventDispatcher class.

public NativeEventDispatcher(string driverName, ulong driverData)

Parameters

driverName string

The name of a registered driver.

driverData ulong

Driver data to be used when initializing the driver.

Fields

callbacks

The event handler for this NativeEventDispatcher object (a multicast combinable delegate).

protected NativeEventHandler callbacks

Field Value

NativeEventHandler

disposed

Set to

true
if this NativeEventDispatcher object has been disposed, or
false
if not.
protected bool disposed

Field Value

bool

threadSpawn

The event handler for this NativeEventDispatcher object (a multicast combinable delegate).

protected NativeEventHandler threadSpawn

Field Value

NativeEventHandler

Methods

DisableInterrupt()

Disables the interrupt for this NativeEventDispatcher object.

public virtual void DisableInterrupt()

Dispose()

Releases resources used by this NativeEventDispatcher object.

public void Dispose()

Dispose(bool)

Releases resources used by this NativeEventDispatcher object.

protected virtual void Dispose(bool disposing)

Parameters

disposing bool
true
if in the process of disposing, or
false
otherwise.

EnableInterrupt()

Enables the interrupt for this NativeEventDispatcher object.

public virtual void EnableInterrupt()

Finalize()

protected override void Finalize()

Events

OnInterrupt

Adds or removes callback methods for native events.

public event NativeEventHandler OnInterrupt

Event Type

NativeEventHandler

Remarks

Applications can subscribe to this event to be notified when an interrupt event occurs.