C# Class Paralect.ServiceBus.ServiceBus

Inheritance: IDisposable, IBus
Datei anzeigen Open project: paralect/Paralect.ServiceBus Class Usage Examples

Public Methods

Method Description
Create ( ServiceBusConfiguration>.Func configurationAction ) : IServiceBus

Factory method. Create service bus.

Dispose ( ) : void

Do cleanup logic and stop service bus

GetLastException ( ) : Exception

Return last exception or null if no exceptions

Publish ( Object message ) : void

For now Publish() behaves as Send(). Subscription not yet implemented.

Publish ( object message ) : void

We are using Send() here. Publishing/subscribing not implemented yet.

Run ( ServiceBusConfiguration>.Func configurationAction ) : IServiceBus

Factory method. Create and run service bus

Run ( ) : void

Run service bus and start input endpoint observing

Send ( ) : void

Send message. Recipient resolved by the object type.

SendLocal ( ) : void

Send message to input queue of this service bus instance. Can be used for "requeueing" of message.

ServiceBus ( Configuration configuration ) : System

Initializes a new instance of the T:System.Object class.

ServiceBus ( ServiceBusConfiguration configuration ) : System

Initializes a new instance of the T:System.Object class.

Wait ( ) : void

Stop service bus and block thread until bus will be stopped. Maybe rename it to Stop() ?

Private Methods

Method Description
EndpointObserverMessageReceived ( TransportMessage transportMessage, ITransportEndpointObserver transportEndpointObserver ) : void

Handle messages that were received from input endpoint Method can be called from different threads.

PrepareQueues ( ) : void

Check existence of input and error endpoint and create them if needed

Method Details

Create() public static method

Factory method. Create service bus.
public static Create ( ServiceBusConfiguration>.Func configurationAction ) : IServiceBus
configurationAction ServiceBusConfiguration>.Func
return IServiceBus

Dispose() public method

Do cleanup logic and stop service bus
public Dispose ( ) : void
return void

GetLastException() public method

Return last exception or null if no exceptions
public GetLastException ( ) : Exception
return System.Exception

Publish() public method

For now Publish() behaves as Send(). Subscription not yet implemented.
public Publish ( Object message ) : void
message Object
return void

Publish() public method

We are using Send() here. Publishing/subscribing not implemented yet.
public Publish ( object message ) : void
message object
return void

Run() public static method

Factory method. Create and run service bus
public static Run ( ServiceBusConfiguration>.Func configurationAction ) : IServiceBus
configurationAction ServiceBusConfiguration>.Func
return IServiceBus

Run() public method

Run service bus and start input endpoint observing
public Run ( ) : void
return void

Send() public method

Send message. Recipient resolved by the object type.
public Send ( ) : void
return void

SendLocal() public method

Send message to input queue of this service bus instance. Can be used for "requeueing" of message.
public SendLocal ( ) : void
return void

ServiceBus() public method

Initializes a new instance of the T:System.Object class.
public ServiceBus ( Configuration configuration ) : System
configuration Configuration
return System

ServiceBus() public method

Initializes a new instance of the T:System.Object class.
public ServiceBus ( ServiceBusConfiguration configuration ) : System
configuration ServiceBusConfiguration
return System

Wait() public method

Stop service bus and block thread until bus will be stopped. Maybe rename it to Stop() ?
public Wait ( ) : void
return void