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

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