NServiceBus.AcceptanceTesting.Support.EndpointRunner.Stop C# (CSharp) Method

Stop() public method

public Stop ( ) : Task
return Task
        public async Task Stop()
        {
            try
            {
                if (endpointInstance != null)
                {
                    await endpointInstance.Stop().ConfigureAwait(false);
                }
            }
            catch (Exception ex)
            {
                Logger.Error("Failed to stop endpoint " + configuration.EndpointName, ex);
                throw;
            }
            finally
            {
                await Cleanup().ConfigureAwait(false);
            }
        }