public ServiceDescriptionReflector() { Type[] protocolReflectorTypes = WebServicesSection.Current.ProtocolReflectorTypes; this.reflectors = new ProtocolReflector[protocolReflectorTypes.Length]; for (int i = 0; i < this.reflectors.Length; i++) { ProtocolReflector reflector = (ProtocolReflector) Activator.CreateInstance(protocolReflectorTypes[i]); reflector.Initialize(this); this.reflectors[i] = reflector; } WebServiceProtocols enabledProtocols = WebServicesSection.Current.EnabledProtocols; if (((enabledProtocols & WebServiceProtocols.HttpPost) == WebServiceProtocols.Unknown) && ((enabledProtocols & WebServiceProtocols.HttpPostLocalhost) != WebServiceProtocols.Unknown)) { this.reflectorsWithPost = new ProtocolReflector[this.reflectors.Length + 1]; for (int j = 0; j < (this.reflectorsWithPost.Length - 1); j++) { ProtocolReflector reflector2 = (ProtocolReflector) Activator.CreateInstance(protocolReflectorTypes[j]); reflector2.Initialize(this); this.reflectorsWithPost[j] = reflector2; } ProtocolReflector reflector3 = new HttpPostProtocolReflector(); reflector3.Initialize(this); this.reflectorsWithPost[this.reflectorsWithPost.Length - 1] = reflector3; } }
/// <include file='doc\ServiceDescriptionReflector.uex' path='docs/doc[@for="ServiceDescriptionReflector.ServiceDescriptionReflector"]/*' /> /// <devdoc> /// <para>[To be supplied.]</para> /// </devdoc> public ServiceDescriptionReflector() { Type[] reflectorTypes = WebServicesSection.Current.ProtocolReflectorTypes; reflectors = new ProtocolReflector[reflectorTypes.Length]; for (int i = 0; i < reflectors.Length; i++) { ProtocolReflector reflector = (ProtocolReflector)Activator.CreateInstance(reflectorTypes[i]); reflector.Initialize(this); reflectors[i] = reflector; } WebServiceProtocols enabledProtocols = WebServicesSection.Current.EnabledProtocols; if ((enabledProtocols & WebServiceProtocols.HttpPost) == 0 && (enabledProtocols & WebServiceProtocols.HttpPostLocalhost) != 0) { reflectorsWithPost = new ProtocolReflector[reflectors.Length + 1]; for (int i = 0; i < reflectorsWithPost.Length - 1; i++) { ProtocolReflector reflector = (ProtocolReflector)Activator.CreateInstance(reflectorTypes[i]); reflector.Initialize(this); reflectorsWithPost[i] = reflector; } ProtocolReflector reflectorWithPost = new HttpPostProtocolReflector(); reflectorWithPost.Initialize(this); reflectorsWithPost[reflectorsWithPost.Length - 1] = reflectorWithPost; } }
public ServiceDescriptionReflector() { Type[] protocolReflectorTypes = WebServicesSection.Current.ProtocolReflectorTypes; this.reflectors = new ProtocolReflector[protocolReflectorTypes.Length]; for (int i = 0; i < this.reflectors.Length; i++) { ProtocolReflector reflector = (ProtocolReflector)Activator.CreateInstance(protocolReflectorTypes[i]); reflector.Initialize(this); this.reflectors[i] = reflector; } WebServiceProtocols enabledProtocols = WebServicesSection.Current.EnabledProtocols; if (((enabledProtocols & WebServiceProtocols.HttpPost) == WebServiceProtocols.Unknown) && ((enabledProtocols & WebServiceProtocols.HttpPostLocalhost) != WebServiceProtocols.Unknown)) { this.reflectorsWithPost = new ProtocolReflector[this.reflectors.Length + 1]; for (int j = 0; j < (this.reflectorsWithPost.Length - 1); j++) { ProtocolReflector reflector2 = (ProtocolReflector)Activator.CreateInstance(protocolReflectorTypes[j]); reflector2.Initialize(this); this.reflectorsWithPost[j] = reflector2; } ProtocolReflector reflector3 = new HttpPostProtocolReflector(); reflector3.Initialize(this); this.reflectorsWithPost[this.reflectorsWithPost.Length - 1] = reflector3; } }
/// <include file='doc\ServiceDescriptionReflector.uex' path='docs/doc[@for="ServiceDescriptionReflector.ServiceDescriptionReflector"]/*' /> /// <devdoc> /// <para>[To be supplied.]</para> /// </devdoc> public ServiceDescriptionReflector() { Type[] reflectorTypes = WebServicesSection.Current.ProtocolReflectorTypes; reflectors = new ProtocolReflector[reflectorTypes.Length]; for (int i = 0; i < reflectors.Length; i++) { ProtocolReflector reflector = (ProtocolReflector)Activator.CreateInstance(reflectorTypes[i]); reflector.Initialize(this); reflectors[i] = reflector; } WebServiceProtocols enabledProtocols = WebServicesSection.Current.EnabledProtocols; if ((enabledProtocols & WebServiceProtocols.HttpPost) == 0 && (enabledProtocols & WebServiceProtocols.HttpPostLocalhost) != 0) { reflectorsWithPost = new ProtocolReflector[reflectors.Length + 1]; for (int i = 0; i < reflectorsWithPost.Length - 1; i++) { ProtocolReflector reflector = (ProtocolReflector) Activator.CreateInstance(reflectorTypes[i]); reflector.Initialize(this); reflectorsWithPost[i] = reflector; } ProtocolReflector reflectorWithPost = new HttpPostProtocolReflector(); reflectorWithPost.Initialize(this); reflectorsWithPost[reflectorsWithPost.Length - 1] = reflectorWithPost; } }