Example #1
0
        void DisableSecondLevelRetries(Configure configure)
        {
            #region 3to4DisableSecondLevelRetries

            configure.DisableSecondLevelRetries();

            #endregion
        }
Example #2
0
        void DisableSecondLevelRetries(Configure configure)
        {
            #region 3to4DisableSecondLevelRetries

            configure.DisableSecondLevelRetries();

            #endregion
        }
        DisableWithCode(Configure configure)
        {
            #region DisableSlrWithCode

            configure.DisableSecondLevelRetries();

            #endregion
        }
Example #4
0
        void DisableWithCode(Configure configure)
        {
            #region DisableDelayedRetries

            configure.DisableSecondLevelRetries();

            #endregion
        }
Example #5
0
        DisableWithCode(Configure configure)
        {
            #region DisableSlrWithCode

            configure.DisableSecondLevelRetries();

            #endregion
        }
Example #6
0
        public void DisableSecondLevelRetries()
        {
            #region 3to4DisableSecondLevelRetries

            Configure configure = Configure.With();
            configure.DisableSecondLevelRetries();

            #endregion
        }
Example #7
0
        public DisableWithCode()
        {
            #region DisableSlrWithCode

            Configure configure = Configure.With();
            configure.DisableSecondLevelRetries();

            #endregion
        }
Example #8
0
    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);
            }
        }
    }