internal static void ConfigureServiceBus(Collection <ServiceEndpoint> endpoints) { foreach (ServiceEndpoint endpoint in endpoints) { Binding binding = endpoint.Binding; ServiceBusHelper.ConfigureBinding(binding); } }
internal static void ConfigureServiceBus(IEnumerable <ServiceEndpoint> endpoints) { foreach (ServiceEndpoint endpoint in endpoints) { Binding binding = endpoint.Binding; if (binding is NetTcpRelayBinding || binding is NetOnewayRelayBinding) { ServiceBusHelper.ConfigureBinding(binding); continue; } throw new InvalidOperationException(binding.GetType() + " is unsupported with ServiceSecurity.ServiceBus"); } }