Show / Hide Table of Contents

    Class HttpClientProxy

    A wrapper for a HTTP Client

    Inheritance
    System.Object
    HttpClientProxy
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: DocuWare.Services.Http.Client
    Assembly: DocuWare.RestClient.dll
    Syntax
    public class HttpClientProxy

    Constructors

    HttpClientProxy(HttpClient)

    Initializes a new instance of the HttpClientProxy class.

    Declaration
    public HttpClientProxy(HttpClient httpClient)
    Parameters
    Type Name Description
    System.Net.Http.HttpClient httpClient

    The HTTP client.

    Properties

    BaseAddress

    Gets the base address.

    Declaration
    public Uri BaseAddress { get; }
    Property Value
    Type Description
    System.Uri

    The base address.

    HttpClient

    Gets or sets the HTTP client.

    Declaration
    public HttpClient HttpClient { get; }
    Property Value
    Type Description
    System.Net.Http.HttpClient

    The HTTP client.

    Methods

    ReplaceHttpClient(HttpClient)

    Replaces the HTTP client.

    Declaration
    public void ReplaceHttpClient(HttpClient httpClient)
    Parameters
    Type Name Description
    System.Net.Http.HttpClient httpClient

    The HTTP client.

    Operators

    Implicit(HttpClientProxy to HttpClient)

    Performs an implicit conversion from HttpClientProxy to HttpClient.

    Declaration
    public static implicit operator HttpClient(HttpClientProxy httpClientProxy)
    Parameters
    Type Name Description
    HttpClientProxy httpClientProxy

    The HTTP client proxy.

    Returns
    Type Description
    System.Net.Http.HttpClient

    The result of the conversion.

    Extension Methods

    MethodInvocation.Send<TResponse>(HttpClientProxy, String, HttpMethod, String[])
    MethodInvocation.Send<TResponse>(HttpClientProxy, CancellationToken, String, HttpMethod, String[])
    MethodInvocation.Send<TResponse, TRequest>(HttpClientProxy, String, HttpMethod, String, TRequest, String)
    MethodInvocation.Send<TResponse, TRequest>(HttpClientProxy, CancellationToken, String, HttpMethod, String, TRequest, String)
    MethodInvocation.Send<TResponse>(HttpClientProxy, String, HttpMethod, HttpContent, String)
    MethodInvocation.Send<TResponse>(HttpClientProxy, CancellationToken, String, HttpMethod, HttpContent, String)
    About Us Contact Imprint Terms Data privacy
    © 2024 DocuWare Corporation powered by DocFX Back to top