예제 #1
0
 internal static void ConfigureServiceBus(Collection <ServiceEndpoint> endpoints)
 {
     foreach (ServiceEndpoint endpoint in endpoints)
     {
         Binding binding = endpoint.Binding;
         ServiceBusHelper.ConfigureBinding(binding);
     }
 }
예제 #2
0
 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");
     }
 }