コード例 #1
0
 private void AllowExtensionsToReflectMethod()
 {
     if (this.extensions == null)
     {
         TypeElementCollection soapExtensionReflectorTypes = WebServicesSection.Current.SoapExtensionReflectorTypes;
         this.extensions = new SoapExtensionReflector[soapExtensionReflectorTypes.Count];
         for (int i = 0; i < this.extensions.Length; i++)
         {
             SoapExtensionReflector reflector = (SoapExtensionReflector)Activator.CreateInstance(soapExtensionReflectorTypes[i].Type);
             reflector.ReflectionContext = this;
             this.extensions[i]          = reflector;
         }
     }
     foreach (SoapExtensionReflector reflector2 in this.extensions)
     {
         reflector2.ReflectMethod();
     }
 }
コード例 #2
0
 void AllowExtensionsToReflectMethod()
 {
     if (extensions == null)
     {
         Type[] extensionTypes = WebServicesConfiguration.Current.SoapExtensionReflectorTypes;
         extensions = new SoapExtensionReflector[extensionTypes.Length];
         for (int i = 0; i < extensions.Length; i++)
         {
             SoapExtensionReflector extension = (SoapExtensionReflector)Activator.CreateInstance(extensionTypes[i]);
             extension.ReflectionContext = this;
             extensions[i] = extension;
         }
     }
     foreach (SoapExtensionReflector extension in extensions)
     {
         extension.ReflectMethod();
     }
 }
コード例 #3
0
 void AllowExtensionsToReflectDescription()
 {
     if (extensions == null)
     {
         TypeElementCollection extensionTypes = WebServicesSection.Current.SoapExtensionReflectorTypes;
         extensions = new SoapExtensionReflector[extensionTypes.Count];
         for (int i = 0; i < extensions.Length; i++)
         {
             SoapExtensionReflector extension = (SoapExtensionReflector)Activator.CreateInstance(extensionTypes[i].Type);
             extension.ReflectionContext = this;
             extensions[i] = extension;
         }
     }
     foreach (SoapExtensionReflector extension in extensions)
     {
         extension.ReflectDescription();
     }
 }
コード例 #4
0
		public Soap12ProtocolReflector ()
		{
			reflector = new Soap12BindingExtensionReflector ();
			reflector.ReflectionContext = this;
		}
コード例 #5
0
 public Soap12ProtocolReflector()
 {
     reflector = new Soap12BindingExtensionReflector();
     reflector.ReflectionContext = this;
 }