/// <summary>
        /// Use this constructor when you are on the Remote Side, only
        /// </summary>
        public WebProxyClientProvider(Uri serviceUri,
                                      Dictionary <string, string> scopeParameters = null,
                                      Dictionary <string, string> customHeaders   = null,
                                      SerializationFormat serializationFormat     = SerializationFormat.Json)
        {
            this.httpRequestHandler = new HttpRequestHandler(serviceUri, serializationFormat, CancellationToken.None);

            foreach (var sp in scopeParameters)
            {
                this.AddScopeParameter(sp.Key, sp.Value);
            }

            foreach (var ch in customHeaders)
            {
                this.AddCustomHeader(ch.Key, ch.Value);
            }
        }
 /// <summary>
 /// Use this constructor when you are on the Remote Side, only
 /// </summary>
 public WebProxyClientProvider(Uri serviceUri, HttpClientHandler handler, Dictionary <string, string> scopeParameters = null, SerializationFormat serializationFormat = SerializationFormat.Json)
 {
     this.ServiceUri          = serviceUri;
     this.httpRequestHandler  = new HttpRequestHandler(this.ServiceUri, serializationFormat, handler, scopeParameters);
     this.SerializationFormat = serializationFormat;
 }
 public WebProxyClientProvider(Uri serviceUri, SerializationFormat serializationFormat)
 {
     this.ServiceUri          = serviceUri;
     this.httpRequestHandler  = new HttpRequestHandler(this.ServiceUri, serializationFormat);
     this.SerializationFormat = serializationFormat;
 }
 public WebProxyClientProvider(Uri serviceUri, SerializationFormat serializationFormat)
 {
     this.httpRequestHandler = new HttpRequestHandler(serviceUri, serializationFormat, CancellationToken.None);
 }
 public WebProxyClientProvider()
 {
     this.httpRequestHandler = new HttpRequestHandler();
 }
Пример #6
0
 /// <summary>
 /// Use this Constructor if you are on the Client Side, only
 /// </summary>
 public WebProxyClientProvider(Uri serviceUri)
 {
     this.httpRequestHandler = new HttpRequestHandler(serviceUri, CancellationToken.None);
 }