private static void ShowMainWindow() { var eventStoreClient = new EventStoreClient(); var messageBusClient = new MessageBusClient(); var dealEntryCommandHander = new DealEntryCommandHandler(messageBusClient, eventStoreClient); var dealRepo = new DealRepository(eventStoreClient, messageBusClient); dealEntryCommandHander.Start(); var window = new MainWindow(); var dealCaptureVm = new ActiveDealDashboardViewModel(dealRepo); window.DataContext = dealCaptureVm; using (dealCaptureVm.Start()) { window.ShowDialog(); } dealEntryCommandHander.Dispose(); messageBusClient.Dispose(); eventStoreClient.Dispose(); }
public void Dispose() { _client.Dispose(); }
public void Dispose() { Client.Dispose(); }
public void Dispose() => _client?.Dispose();
public void Dispose() { _replicationPipeine.Dispose(); _mirrorClient.Dispose(); }
public void Dispose() { _subscription.Dispose(); _client.Dispose(); }