public async Task DisposeAsync()
        {
            await dockerProxy.StopContainerAsync(RabbitContainerAndHostName).ConfigureAwait(false);

            await dockerProxy.RemoveContainerAsync(RabbitContainerAndHostName).ConfigureAwait(false);

            if (dockerEngineOsPlatform == OSPlatform.Linux || dockerEngineOsPlatform == OSPlatform.OSX)
            {
                await dockerProxy.DeleteNetworkAsync(dockerNetworkName).ConfigureAwait(false);
            }
        }
Пример #2
0
        public async Task DisposeAsync()
        {
            if (!Configuration.TestAgainstContainers)
            {
                return;
            }

            await dockerProxy.StopContainerAsync(Configuration.RabbitMqHostName).ConfigureAwait(false);

            await dockerProxy.RemoveContainerAsync(Configuration.RabbitMqHostName).ConfigureAwait(false);

            if (dockerEngineOsPlatform == OSPlatform.Linux || dockerEngineOsPlatform == OSPlatform.OSX)
            {
                await dockerProxy.DeleteNetworkAsync(dockerNetworkName).ConfigureAwait(false);
            }
        }