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; }
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); }
public void ProfileActivated() { if (ActiveProfiles.Contains(typeof(Master))) { throw new ConfigurationErrorsException("Worker profile and Master profile should not coexist."); } Configure.Instance.EnlistWithDistributor(); }
public void ProfileActivated() { if (ActiveProfiles.Contains(typeof(Worker))) { throw new ConfigurationErrorsException("Master profile and Worker profile should not coexist."); } Configure.Instance.AsMasterNode() .RunDistributor() .RunGateway(); }
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(); }
public void Update(GameTime gt) { doLobbyStuff(); if (Level.current?.initialized != true) { return; } if (Level.current != prevLevel) { LevelChange(); } prevLevel = Level.current; var profiles = ActiveProfiles.Where(x => x.duck != null && x.team != null); foreach (var profile in profiles) { SpriteMap teamHat = profile?.team?.hat, previousHat = null; if (teamHat == null) { continue; } if (!pHats.TryGetValue(profile, out previousHat) || previousHat != teamHat) { HatChange(profile); } } pHats = profiles.ToDictionary(profile => profile, profile => profile?.team?.hat); DuckEvents.Update(); foreach (var kvp in ActiveReskins) { var duck = kvp.Key.duck; if (duck == null) { continue; } var skin = kvp.Value; skin.Update(duck); var persona = kvp.Key.persona; var hat = duck.hat as TeamHat; if (hat != null && hat.team == duck.team) { removeHat(duck); } if (persona.sprite.texture.textureName != "RESKIN" || Keyboard.Pressed(Keys.F6) || persona.sprite.texture.IsDisposed) { skin.Apply(duck); } } }