C# Class Paralect.ServiceBus.ServiceBus

Inheritance: IDisposable, IBus
Afficher le fichier Open project: paralect/Paralect.ServiceBus Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

Dispose() public méthode

Do cleanup logic and stop service bus
public Dispose ( ) : void
Résultat void

GetLastException() public méthode

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

Publish() public méthode

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

Publish() public méthode

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

Run() public static méthode

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

Run() public méthode

Run service bus and start input endpoint observing
public Run ( ) : void
Résultat void

Send() public méthode

Send message. Recipient resolved by the object type.
public Send ( ) : void
Résultat void

SendLocal() public méthode

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

ServiceBus() public méthode

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

ServiceBus() public méthode

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

Wait() public méthode

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