コード例 #1
0
 /// <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;
 }
コード例 #2
0
 /// <summary>
 /// Creates a new CORS endpoint behavior
 /// </summary>
 public ServiceThrottlingEndpointBehavior(ServiceThrottlingConfiguration settings)
 {
     this.m_settings = settings;
 }