/// <summary> /// Configures the <see cref="ITransport" /> not to enlist in Distributed Transactions. /// </summary> public TransactionAdvancedSettings DisableDistributedTransactions() { SettingsHolder.Set("Transactions.SuppressDistributedTransactions", true); return(this); }
/// <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); }
/// <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); }
/// <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); }
/// <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); }
/// <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); }
public DefaultTransactionSettings() { SettingsHolder.SetDefault("Transactions.Enabled", true); }
public DefaultEndpointSettings() { SettingsHolder.SetDefault("Endpoint.SendOnly", false); }
/// <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); }
public DefaultEndpointAdvancedSettings() { SettingsHolder.SetDefault("Endpoint.DurableMessages", true); }
public static MetricsOptions EnableMetrics(this Settings.SettingsHolder settings) => throw new NotImplementedException();
public override TransportInfrastructure Initialize(SettingsHolder settings, string connectionString) { throw new NotImplementedException(); }