public static IEndpoint New(Action <IEndpointConfigurator> action) { var configurator = new MulticastUdpEndpointConfigurator(); action(configurator); return(configurator.Create()); }
public static IEndpoint New(Action<IEndpointConfigurator> action) { var configurator = new MulticastUdpEndpointConfigurator(); action(configurator); return configurator.Create(); }
public static IEndpoint ConfigureEndpoint(Uri uri, Action <IEndpointConfigurator> configurator) { if (uri.Scheme.ToLowerInvariant() == "multicast") { IEndpoint endpoint = MulticastUdpEndpointConfigurator.New(x => { x.SetUri(uri); configurator(x); }); return(endpoint); } return(null); }