C# Class EducationPathways.ServiceBus.TopicSender

Implements an asynchronous sender of messages to a Windows Azure Service Bus topic.
Inheritance: IMessageSender
Exibir arquivo Open project: pebblecode/EducationPathways Class Usage Examples

Public Methods

Method Description
Send ( Func messageFactory ) : void
SendAsync ( Func messageFactory ) : void

Asynchronously sends the specified message.

SendAsync ( Func messageFactory, System.Action successCallback, Action exceptionCallback ) : void
SendAsync ( IEnumerable messageFactories ) : void
TopicSender ( ServiceBusSettings settings, string topic ) : System

Initializes a new instance of the TopicSender class, automatically creating the given topic if it does not exist.

Protected Methods

Method Description
DoBeginSendMessage ( BrokeredMessage message, AsyncCallback ac ) : void
DoEndSendMessage ( IAsyncResult ar ) : void
TopicSender ( ServiceBusSettings settings, string topic, Microsoft.Practices.TransientFaultHandling.RetryStrategy retryStrategy ) : System

Initializes a new instance of the TopicSender class, automatically creating the given topic if it does not exist.

Method Details

DoBeginSendMessage() protected method

protected DoBeginSendMessage ( BrokeredMessage message, AsyncCallback ac ) : void
message BrokeredMessage
ac AsyncCallback
return void

DoEndSendMessage() protected method

protected DoEndSendMessage ( IAsyncResult ar ) : void
ar IAsyncResult
return void

Send() public method

public Send ( Func messageFactory ) : void
messageFactory Func
return void

SendAsync() public method

Asynchronously sends the specified message.
public SendAsync ( Func messageFactory ) : void
messageFactory Func
return void

SendAsync() public method

public SendAsync ( Func messageFactory, System.Action successCallback, Action exceptionCallback ) : void
messageFactory Func
successCallback System.Action
exceptionCallback Action
return void

SendAsync() public method

public SendAsync ( IEnumerable messageFactories ) : void
messageFactories IEnumerable
return void

TopicSender() public method

Initializes a new instance of the TopicSender class, automatically creating the given topic if it does not exist.
public TopicSender ( ServiceBusSettings settings, string topic ) : System
settings ServiceBusSettings
topic string
return System

TopicSender() protected method

Initializes a new instance of the TopicSender class, automatically creating the given topic if it does not exist.
protected TopicSender ( ServiceBusSettings settings, string topic, Microsoft.Practices.TransientFaultHandling.RetryStrategy retryStrategy ) : System
settings ServiceBusSettings
topic string
retryStrategy Microsoft.Practices.TransientFaultHandling.RetryStrategy
return System