Esempio n. 1
0
 /// <summary>
 /// Configures the <see cref="ITransport" /> not to enlist in Distributed Transactions.
 /// </summary>
 public TransactionAdvancedSettings DisableDistributedTransactions()
 {
     SettingsHolder.Set("Transactions.SuppressDistributedTransactions", true);
     return(this);
 }
Esempio n. 2
0
 /// <summary>
 ///     Configures this endpoint to not use transactions.
 /// </summary>
 /// <remarks>
 ///     Turning transactions off means that the endpoint won't do retries and messages are lost on exceptions.
 /// </remarks>
 public TransactionSettings Disable()
 {
     SettingsHolder.Set("Transactions.Enabled", false);
     return(this);
 }
Esempio n. 3
0
            /// <summary>
            ///    Sets the isolation level of the transaction.
            /// </summary>
            /// <param name="isolationLevel">A <see cref="T:System.Transactions.IsolationLevel" /> enumeration that specifies the isolation level of the transaction.</param>
            public TransactionAdvancedSettings IsolationLevel(IsolationLevel isolationLevel)
            {
                SettingsHolder.Set("Transactions.IsolationLevel", isolationLevel);

                return(this);
            }
Esempio n. 4
0
 /// <summary>
 /// Configures this endpoint so that <see cref="IHandleMessages{T}">handlers</see> not wrapped in a <see cref="TransactionScope" />.
 /// </summary>
 public TransactionAdvancedSettings WrapHandlersExecutionInATransactionScope()
 {
     SettingsHolder.Set("Transactions.DoNotWrapHandlersExecutionInATransactionScope", false);
     return(this);
 }
Esempio n. 5
0
 /// <summary>
 ///     Configures this endpoint to use transactions.
 /// </summary>
 /// <remarks>
 ///     A transactional endpoint means that we don't remove a message from the queue until it has been successfully processed.
 /// </remarks>
 public TransactionSettings Enable()
 {
     SettingsHolder.Set("Transactions.Enabled", true);
     return(this);
 }
Esempio n. 6
0
 /// <summary>
 /// Configures endpoint with messages that are not guaranteed to be delivered in the event of a computer failure or network problem.
 /// </summary>
 /// <returns></returns>
 public EndpointAdvancedSettings DisableDurableMessages()
 {
     SettingsHolder.Set("Endpoint.DurableMessages", false);
     return(this);
 }
Esempio n. 7
0
 public DefaultTransactionSettings()
 {
     SettingsHolder.SetDefault("Transactions.Enabled", true);
 }
Esempio n. 8
0
 public DefaultEndpointSettings()
 {
     SettingsHolder.SetDefault("Endpoint.SendOnly", false);
 }
Esempio n. 9
0
 /// <summary>
 ///     Configures this endpoint as a send only endpoint.
 /// </summary>
 /// <remarks>
 ///     Use this in endpoints whose only purpose is sending messages, websites are often a good example of send only endpoints.
 /// </remarks>
 public Endpoint AsSendOnly()
 {
     SettingsHolder.Set("Endpoint.SendOnly", true);
     Feature.Disable <TimeoutManager>();
     return(this);
 }
Esempio n. 10
0
 public DefaultEndpointAdvancedSettings()
 {
     SettingsHolder.SetDefault("Endpoint.DurableMessages", true);
 }
 public static MetricsOptions EnableMetrics(this Settings.SettingsHolder settings)
 => throw new NotImplementedException();
Esempio n. 12
0
 public override TransportInfrastructure Initialize(SettingsHolder settings, string connectionString)
 {
     throw new NotImplementedException();
 }