Пример #1
0
 protected async Task OnStopAsync()
 {
     if (_endpoint != null)
     {
         await _endpoint.StopEndpoint().ConfigureAwait(false);
     }
     await PerformOnStopOperations().ConfigureAwait(false);
 }
Пример #2
0
        private static async Task AsyncMain()
        {
            _endpoint.Initialize();
            await _endpoint.StartEndpoint();

            Console.Title = "NSB.Client";
            try
            {
                await SendOrder()
                .ConfigureAwait(false);
            }
            finally
            {
                _endpoint.StopEndpoint();
            }
        }
Пример #3
0
 static void OnProcessExit(object sender, EventArgs e)
 {
     _endpoint.StopEndpoint();
 }