コード例 #1
0
ファイル: SecurityBehavior.cs プロジェクト: II01/i2MFCSv2.TAI
 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");
     }
 }