示例#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);
 }
 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);
     }
 }