コード例 #1
0
ファイル: App.xaml.cs プロジェクト: LeeCampbell/CqrsEsSpike
        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();
        }
コード例 #2
0
 public void Dispose()
 {
     _client.Dispose();
 }
コード例 #3
0
 public void Dispose()
 {
     Client.Dispose();
 }
コード例 #4
0
 public void Dispose() => _client?.Dispose();
 public void Dispose()
 {
     _replicationPipeine.Dispose();
     _mirrorClient.Dispose();
 }
 public void Dispose()
 {
     _subscription.Dispose();
     _client.Dispose();
 }