示例#1
0
        void IHandleProfile.ProfileActivated()
        {
            Configure.Instance.RavenPersistence();

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

            if (!Configure.Instance.Configurer.HasComponent <ISagaPersister>())
            {
                Configure.Instance.RavenSagaPersister();
            }


            if (Config is AsA_Publisher && !Configure.Instance.Configurer.HasComponent <ISubscriptionStorage>())
            {
                if ((ActiveProfiles.Contains(typeof(Master))) || (ActiveProfiles.Contains(typeof(Worker))) || (ActiveProfiles.Contains(typeof(Distributor))))
                {
                    Configure.Instance.RavenSubscriptionStorage();
                }
                else
                {
                    Configure.Instance.MsmqSubscriptionStorage();
                }
            }

            WindowsInstallerRunner.RunInstallers = true;
            WindowsInstallerRunner.RunInfrastructureInstallers = false;
        }
示例#2
0
        public void ProfileActivated()
        {
            if (ActiveProfiles.Contains(typeof(Worker)))
            {
                throw new ConfigurationErrorsException("Distributor profile and Worker profile should not coexist.");
            }

            Configure.Instance.RunDistributorWithNoWorkerOnItsEndpoint();
        }
        public void ProfileActivated()
        {
            if (ActiveProfiles.Contains(typeof(MSMQWorker)))
            {
                throw new ConfigurationErrorsException("Distributor profile and Worker profile should not coexist.");
            }

            Configure.Instance.RunMSMQDistributor(false);
        }
示例#4
0
        public void ProfileActivated()
        {
            if (ActiveProfiles.Contains(typeof(Master)))
            {
                throw new ConfigurationErrorsException("Worker profile and Master profile should not coexist.");
            }

            Configure.Instance.EnlistWithDistributor();
        }
示例#5
0
        public void ProfileActivated()
        {
            if (ActiveProfiles.Contains(typeof(Worker)))
            {
                throw new ConfigurationErrorsException("Master profile and Worker profile should not coexist.");
            }

            Configure.Instance.AsMasterNode()
            .RunDistributor()
            .RunGateway();
        }
示例#6
0
        public void ProfileActivated()
        {
            if (ActiveProfiles.Contains(typeof(MSMQWorker)))
            {
                throw new ConfigurationErrorsException("Master profile and Worker profile should not coexist.");
            }

            Configure.Instance.AsMSMQMasterNode();

            Feature.EnableByDefault <Gateway>();
        }
        public void ProfileActivated()
        {
            if (ActiveProfiles.Contains(typeof(Master)))
            {
                throw new ConfigurationErrorsException("Worker profile and Master profile should not coexist.");
            }

#pragma warning disable 437
            if (ActiveProfiles.Contains(typeof(Distributor)))
            {
                throw new ConfigurationErrorsException("Worker profile and Distributor profile should not coexist.");
            }
#pragma warning restore 437

            Configure.Instance.EnlistWithDistributor();
        }