void DisableSecondLevelRetries(Configure configure) { #region 3to4DisableSecondLevelRetries configure.DisableSecondLevelRetries(); #endregion }
DisableWithCode(Configure configure) { #region DisableSlrWithCode configure.DisableSecondLevelRetries(); #endregion }
void DisableWithCode(Configure configure) { #region DisableDelayedRetries configure.DisableSecondLevelRetries(); #endregion }
public void DisableSecondLevelRetries() { #region 3to4DisableSecondLevelRetries Configure configure = Configure.With(); configure.DisableSecondLevelRetries(); #endregion }
public DisableWithCode() { #region DisableSlrWithCode Configure configure = Configure.With(); configure.DisableSecondLevelRetries(); #endregion }
static void Main() { Console.Title = "Samples.ErrorHandling.WithoutSLR"; #region DisableSLR Configure configure = Configure.With(); configure.Log4Net(); configure.DefineEndpointName("Samples.ErrorHandling.WithoutSLR"); configure.DefaultBuilder(); configure.DisableSecondLevelRetries(); #endregion configure.MsmqTransport(); configure.InMemorySagaPersister(); configure.RunTimeoutManagerWithInMemoryPersistence(); configure.InMemorySubscriptionStorage(); configure.JsonSerializer(); using (IStartableBus startableBus = configure.UnicastBus().CreateBus()) { IBus bus = startableBus .Start(() => configure.ForInstallationOn <Windows>().Install()); Console.WriteLine("Press enter to send a message that will throw an exception."); Console.WriteLine("Press any key to exit"); while (true) { ConsoleKeyInfo key = Console.ReadKey(); if (key.Key != ConsoleKey.Enter) { return; } MyMessage m = new MyMessage { Id = Guid.NewGuid() }; bus.SendLocal(m); } } }