Example #1
0
        void IHandleProfile.ProfileActivated()
        {
            InMemoryPersistence.UseAsDefault();

            if (!Configure.Instance.Configurer.HasComponent <IManageMessageFailures>())
            {
                Configure.Instance.InMemoryFaultManagement();
            }

            WindowsInstallerRunner.RunInstallers = true;
        }
Example #2
0
        /// <summary>
        ///     Tells the endpoint to not enforce durability (using InMemory storages, non durable messages, ...).
        /// </summary>
        public Endpoint AsVolatile()
        {
            InMemoryPersistence.UseAsDefault();

            Configure.Transactions.Disable();
            Configure.Transactions.Advanced(s => s.DoNotWrapHandlersExecutionInATransactionScope()
                                            .DisableDistributedTransactions());

            Advanced(settings => settings.DisableDurableMessages());

            return(this);
        }