Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
using Xunit;

[assembly: CollectionBehavior(CollectionBehavior.CollectionPerAssembly)]
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,18 @@ public static IListenerConfiguration ListenAtPort(this WolverineOptions options,
endpoint.IsListener = true;
return new ListenerConfiguration(endpoint);
}

/// <summary>
/// Directs the application to listen at the designated port in a
/// fast, but non-durable way
/// </summary>
/// <param name="port"></param>
public static IListenerConfiguration ListenAtPort(this WolverineOptions options, int port, string hostName)
{
var endpoint = options.Transports.GetOrCreate<TcpTransport>().GetOrCreateEndpoint(TcpEndpoint.ToUri(port, hostName));
endpoint.IsListener = true;
return new ListenerConfiguration(endpoint);
}

/// <summary>
/// Publish the designated message types using Wolverine's lightweight
Expand Down
Loading