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

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