Skip to content

Instantly share code, notes, and snippets.

@andreasohlund
Created November 8, 2010 21:27
Show Gist options
  • Save andreasohlund/668301 to your computer and use it in GitHub Desktop.
Save andreasohlund/668301 to your computer and use it in GitHub Desktop.
public class MySSSBTransportFactory : ISSBTransportFactory
{
readonly string _connectionString;
readonly IMessageSerializer _messageSerializer;
public TaxberTransportFactory(string connectionString, IMessageSerializer messageSerializer)
{
_connectionString = connectionString;
_messageSerializer = messageSerializer;
}
public ITransport GetTransport()
{
return new ServiceBrokerTransport
{
InputQueue = "MyServiceQueue",
ErrorService = "MyErrorService",
ReturnService = "MyEventService",
NumberOfWorkerThreads = 1,
MessageSerializer = _messageSerializer,
MaxRetries = 2,
ConnectionString = _connectionString
};
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment