diff --git a/src/Transports/Redis/Wolverine.Redis.Tests/NoParallelization.cs b/src/Transports/Redis/Wolverine.Redis.Tests/NoParallelization.cs new file mode 100644 index 000000000..b1fa88422 --- /dev/null +++ b/src/Transports/Redis/Wolverine.Redis.Tests/NoParallelization.cs @@ -0,0 +1,3 @@ +using Xunit; + +[assembly: CollectionBehavior(CollectionBehavior.CollectionPerAssembly)] \ No newline at end of file diff --git a/src/Wolverine/Transports/Tcp/TcpTransportConfigurationExtensions.cs b/src/Wolverine/Transports/Tcp/TcpTransportConfigurationExtensions.cs index 800daef2a..92330f568 100644 --- a/src/Wolverine/Transports/Tcp/TcpTransportConfigurationExtensions.cs +++ b/src/Wolverine/Transports/Tcp/TcpTransportConfigurationExtensions.cs @@ -18,6 +18,18 @@ public static IListenerConfiguration ListenAtPort(this WolverineOptions options, endpoint.IsListener = true; return new ListenerConfiguration(endpoint); } + + /// + /// Directs the application to listen at the designated port in a + /// fast, but non-durable way + /// + /// + public static IListenerConfiguration ListenAtPort(this WolverineOptions options, int port, string hostName) + { + var endpoint = options.Transports.GetOrCreate().GetOrCreateEndpoint(TcpEndpoint.ToUri(port, hostName)); + endpoint.IsListener = true; + return new ListenerConfiguration(endpoint); + } /// /// Publish the designated message types using Wolverine's lightweight