public MessageStore(IStoreProvider storeProvider, ICheckpointStore checkpointStore, TimeSpan timeToLive, bool checkEntireQueueOnCleanup = false) { this.storeProvider = Preconditions.CheckNotNull(storeProvider); this.messageEntityStore = this.storeProvider.GetEntityStore <string, MessageWrapper>(Constants.MessageStorePartitionKey); this.endpointSequentialStores = new ConcurrentDictionary <string, ISequentialStore <MessageRef> >(); this.timeToLive = timeToLive; this.checkpointStore = Preconditions.CheckNotNull(checkpointStore, nameof(checkpointStore)); this.messagesCleaner = new CleanupProcessor(this, checkEntireQueueOnCleanup); Events.MessageStoreCreated(); }
public void ProcessTest() { CleanupProcessor target = new CleanupProcessor(); IProjectNote projectNote = new ProjectNoteMock(); bool expected = false; // TODO: Initialize to an appropriate value bool actual; actual = target.Process(projectNote); Assert.AreEqual(expected, actual); Assert.Inconclusive("Verify the correctness of this test method."); }
private void OnKeyUp(object sender, KeyEventArgs e) { /* * if (e.KeyCode == Keys.NumPad4) * { * foreach (var weapon in Enum.GetValues(typeof(WeaponHash))) * { * Game.Player.Character.Weapons.Give((WeaponHash) weapon, 100, true, true); * } * * } * if (e.KeyCode == Keys.NumPad2) * { * Vehicle veh = World.CreateVehicle((VehicleHash) Game.GenerateHash(Game.GetUserInput()), * Game.Player.Character.Position + Game.Player.Character.ForwardVector * 3.0f, * Game.Player.Character.Heading); * veh.PlaceOnGround(); * }*/ if (e.KeyCode == Keys.NumPad1) { if (string.IsNullOrEmpty(languageCode)) { languageCode = Game.GetUserInput("en"); } Notification.Show("~y~Starting..."); VehicleLoader.LoadVehicles(); ModAssignProcessor.Process(); LocalizationProcessor.Process(); CleanupProcessor.Process(); OutputProcessor.OutputVehicleInfo(); Notification.Show("~g~Finished!"); } }
public ShellViewModel(IEventAggregator eventAggregator, CleanupProcessor cleanupProcessor) { CleanupProcessor = cleanupProcessor; VisitedProjects = new ObservableCollection<string>(); eventAggregator.GetEvent<ProjectVisitedEvent>().Subscribe(x =>VisitedProjects.Add(x)); }