/// <summary> /// CORS endpoint behavior as configured from endpoint behavior /// </summary> public ServiceThrottlingEndpointBehavior(XElement xe) { if (xe == null) { throw new InvalidOperationException("Missing ServiceThrottlingConfiguration"); } using (var sr = new StringReader(xe.ToString())) this.m_settings = XmlModelSerializerFactory.Current.CreateSerializer(typeof(ServiceThrottlingConfiguration)).Deserialize(sr) as ServiceThrottlingConfiguration; }
/// <summary> /// Creates a new CORS endpoint behavior /// </summary> public ServiceThrottlingEndpointBehavior(ServiceThrottlingConfiguration settings) { this.m_settings = settings; }