C# Class Ninject.Extensions.MessageBroker.Model.Subscriptions.StandardMessageSubscription

The stock implementation of a IMessageSubscription.
Inheritance: Ninject.Infrastructure.Disposal.DisposableObject, IMessageSubscription
Mostrar archivo Open project: ninject/Ninject.Extensions.MessageBroker

Public Methods

Method Description
Deliver ( object sender, object args ) : void

Triggers the event handler associated with the subscription.

Dispose ( bool disposing ) : void

Releases all resources held by the object.

StandardMessageSubscription ( IMessageChannel channel, object subscriber, MethodInjector injector, DeliveryThread deliveryThread ) : System.Reflection

Initializes a new instance of the StandardMessageSubscription class.

Private Methods

Method Description
DeliverMessage ( object sender, object args ) : void
DeliverViaBackgroundThread ( object sender, object args ) : void
DeliverViaSynchronizationContext ( object sender, object args ) : void

Method Details

Deliver() public method

Triggers the event handler associated with the subscription.
public Deliver ( object sender, object args ) : void
sender object The object that published the event.
args object The event arguments.
return void

Dispose() public method

Releases all resources held by the object.
public Dispose ( bool disposing ) : void
disposing bool if managed objects should be disposed, otherwise .
return void

StandardMessageSubscription() public method

Initializes a new instance of the StandardMessageSubscription class.
public StandardMessageSubscription ( IMessageChannel channel, object subscriber, MethodInjector injector, DeliveryThread deliveryThread ) : System.Reflection
channel IMessageChannel The channel associated with the subscription.
subscriber object The object that will receive the channel events.
injector MethodInjector The injector that will be triggered an event occurs.
deliveryThread DeliveryThread The thread context that should be used to deliver the message.
return System.Reflection