예제 #1
0
 private void ApplyConfiguration(string configurationName)
 {
     System.ServiceModel.Configuration.MsmqIntegrationBindingElement element2 = MsmqIntegrationBindingCollectionElement.GetBindingCollectionElement().Bindings[configurationName];
     if (element2 == null)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ConfigurationErrorsException(System.ServiceModel.SR.GetString("ConfigInvalidBindingConfigurationName", new object[] { configurationName, "msmqIntegrationBinding" })));
     }
     element2.ApplyConfiguration(this);
 }
예제 #2
0
 void ApplyConfiguration(string configurationName)
 {
     Config.MsmqIntegrationBindingCollectionElement section = Config.MsmqIntegrationBindingCollectionElement.GetBindingCollectionElement();
     Config.MsmqIntegrationBindingElement           element = section.Bindings[configurationName];
     if (element == null)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ConfigurationErrorsException(
                                                                       SR.GetString(SR.ConfigInvalidBindingConfigurationName,
                                                                                    configurationName,
                                                                                    Config.ConfigurationStrings.MsmqIntegrationBindingCollectionElementName)));
     }
     else
     {
         element.ApplyConfiguration(this);
     }
 }
 void Initialize()
 {
     transport = new MsmqIntegrationBindingElement();
 }