Ejemplo n.º 1
0
 public HTMLOperationContext(HTMLService service, IDictionary <string, string> dictionary)
     : base(dictionary)
 {
     this.Service = service;
     this.ApplicationOptionsFactory = new ApplicationOptionsFactoryImpl(this);
 }
Ejemplo n.º 2
0
        public HTMLOperationContextScope(HTMLService service)
            : this(service, new Dictionary <string, string>())

        {
        }
Ejemplo n.º 3
0
 public HTMLOperationContextScope(HTMLService service, IDictionary <string, string> dictionary)
 {
     dictionary = HTMLOperationContext.GetDefaults().Merge(dictionary, key => key.ToUpper());
     context    = new HTMLOperationContext(service, dictionary);
 }
Ejemplo n.º 4
0
 public HTMLOperationContextScope(HTMLService service, HttpRequestMessage request)
     : this(service,
            request.GetQueryNameValuePairs()
            .ToDictionary(kv => kv.Key, kv => kv.Value, StringComparer.OrdinalIgnoreCase))
 {
 }