C# Class IServiceOriented.ServiceBus.RuntimeService

Base class used to define a service that can extend the functionality of the service bus
Inheritance: IDisposable
ファイルを表示 Open project: jezell/iserviceoriented

Public Methods

Method Description
Dispose ( ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void
OnListenerAdded ( ListenerEndpoint endpoint ) : void

Called when a listener is added to the service bus

OnListenerRemoved ( ListenerEndpoint endpoint ) : void

Called when a listener is removed from the service bus

OnMessageDelivered ( MessageDelivery delivery ) : void

Called when a message is successfully delivered by the service bus

OnMessageDeliveryExpired ( MessageDelivery delivery ) : void

Called when a message delivery expires

OnMessageDeliveryFailed ( MessageDelivery delivery, bool permanent ) : void

Called when a message delivery fails

OnStart ( ) : void

Called when the service is starting

OnStop ( ) : void

Called when the service is stopping

OnSubscriptionAdded ( SubscriptionEndpoint endpoint ) : void

Called when a subscription is added to the service bus

OnSubscriptionRemoved ( SubscriptionEndpoint endpoint ) : void

Called when a service is removed from the service bus

OnValidate ( ) : void
WithLockedState ( System.Action action ) : void
WithLockedState ( RuntimeServiceState state, System.Action action ) : void

Private Methods

Method Description
Attach ( ServiceBusRuntime runtime ) : void
StartInternal ( ) : void
StopInternal ( ) : void
Validate ( ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

OnListenerAdded() protected method

Called when a listener is added to the service bus
protected OnListenerAdded ( ListenerEndpoint endpoint ) : void
endpoint ListenerEndpoint
return void

OnListenerRemoved() protected method

Called when a listener is removed from the service bus
protected OnListenerRemoved ( ListenerEndpoint endpoint ) : void
endpoint ListenerEndpoint
return void

OnMessageDelivered() protected method

Called when a message is successfully delivered by the service bus
protected OnMessageDelivered ( MessageDelivery delivery ) : void
delivery MessageDelivery
return void

OnMessageDeliveryExpired() protected method

Called when a message delivery expires
protected OnMessageDeliveryExpired ( MessageDelivery delivery ) : void
delivery MessageDelivery
return void

OnMessageDeliveryFailed() protected method

Called when a message delivery fails
protected OnMessageDeliveryFailed ( MessageDelivery delivery, bool permanent ) : void
delivery MessageDelivery
permanent bool Indicates if the message will be retried (false) or placed in the failure queue (true)
return void

OnStart() protected method

Called when the service is starting
protected OnStart ( ) : void
return void

OnStop() protected method

Called when the service is stopping
protected OnStop ( ) : void
return void

OnSubscriptionAdded() protected method

Called when a subscription is added to the service bus
protected OnSubscriptionAdded ( SubscriptionEndpoint endpoint ) : void
endpoint SubscriptionEndpoint
return void

OnSubscriptionRemoved() protected method

Called when a service is removed from the service bus
protected OnSubscriptionRemoved ( SubscriptionEndpoint endpoint ) : void
endpoint SubscriptionEndpoint
return void

OnValidate() protected method

protected OnValidate ( ) : void
return void

WithLockedState() protected method

protected WithLockedState ( System.Action action ) : void
action System.Action
return void

WithLockedState() protected method

protected WithLockedState ( RuntimeServiceState state, System.Action action ) : void
state RuntimeServiceState
action System.Action
return void