/// <summary> /// Creates an instance of this behavior thingie with all the defaults set /// </summary> public ConfigureAdditionalBehavior() { HandleMessagesInTransactionScope = false; OneWayClientMode = false; BackoffBehavior = BackoffBehavior.Default(); PossiblyInitializeFromConfigurationSection(); }
void PossiblyInitializeFromConfigurationSection() { var config = RebusConfigurationSection.LookItUp(); if (config == null) { return; } if (!string.IsNullOrWhiteSpace(config.AuditQueue)) { PerformMessageAudit(config.AuditQueue); } BackoffBehavior = BackoffBehavior.Default(); }
/// <summary> /// Creates an instance of this behavior thingie with all the defaults set /// </summary> public ConfigureAdditionalBehavior() { HandleMessagesInTransactionScope = false; OneWayClientMode = false; BackoffBehavior = BackoffBehavior.Default(); }
/// <summary> /// Sets the backoff behavior to the low latency behavior. This lets Rebus check the message queue every 20ms /// for new messages. Do note, this increases the load on the message queue. /// </summary> public RebusBehaviorConfigurer SetLowLatencyBackoffBehavior() { Backbone.AdditionalBehavior.BackoffBehavior = BackoffBehavior.LowLatency(); return(this); }