Created
November 8, 2010 21:27
-
-
Save andreasohlund/668301 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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