Ejemplo n.º 1
0
 public SqlServiceBrokerOptionsBuilder AddSqlServiceBrokerOptions(string connectionString,
                                                                  string messageBodyType            = _defaultMessageBodyType,
                                                                  int receiverTimeoutInMilliseconds = -1,
                                                                  int conversationLifetimeInSeconds = 0,
                                                                  bool coversationEncryption        = false,
                                                                  bool compressMessageBody          = true,
                                                                  bool cleanupOnEndConversation     = false,
                                                                  bool endConversationAfterDispatch = true)
 {
     _sqlServiceBrokerOptions = new SqlServiceBrokerOptions(connectionString,
                                                            messageBodyType,
                                                            receiverTimeoutInMilliseconds,
                                                            conversationLifetimeInSeconds,
                                                            coversationEncryption,
                                                            compressMessageBody,
                                                            cleanupOnEndConversation,
                                                            endConversationAfterDispatch);
     return(this);
 }
Ejemplo n.º 2
0
 public SqlServiceBrokerOptionsBuilder AddSqlServiceBrokerOptions(Func <SqlServiceBrokerOptions> optionsBuilder)
 {
     _sqlServiceBrokerOptions = optionsBuilder();
     return(this);
 }
Ejemplo n.º 3
0
 public SqlServiceBrokerOptionsBuilder AddSqlServiceBrokerOptions(SqlServiceBrokerOptions options)
 {
     _sqlServiceBrokerOptions = options;
     return(this);
 }