Search Results for

    Show / Hide Table of Contents

    Class HttpRestClientChannelFactory

    Summary description for HttpRestClientChannelFactory.

    Inheritance
    System.Object
    HttpRestClientChannelFactory
    Implements
    IClientChannelFactory
    Namespace: ImageVault.Client.Rest
    Assembly: ImageVault.Client.dll
    Syntax
    public class HttpRestClientChannelFactory : Object, IClientChannelFactory

    Constructors

    HttpRestClientChannelFactory(ImageVaultClientOptions, IAuthTokenUtil)

    Declaration
    public HttpRestClientChannelFactory(ImageVaultClientOptions options, IAuthTokenUtil authUtil = null)
    Parameters
    Type Name Description
    ImageVaultClientOptions options
    IAuthTokenUtil authUtil
    Exceptions
    Type Condition
    System.ArgumentNullException

    HttpRestClientChannelFactory(IOptions<ImageVaultClientOptions>, IAuthTokenUtil)

    Declaration
    public HttpRestClientChannelFactory(IOptions<ImageVaultClientOptions> options, IAuthTokenUtil authUtil = null)
    Parameters
    Type Name Description
    Microsoft.Extensions.Options.IOptions<ImageVaultClientOptions> options
    IAuthTokenUtil authUtil
    Exceptions
    Type Condition
    System.ArgumentNullException

    Properties

    AuthUtil

    Gets the AuthUtil of the RestClientChannelFactory

    Declaration
    public IAuthTokenUtil AuthUtil { get; }
    Property Value
    Type Description
    IAuthTokenUtil

    Cookies

    Optional cookies to pass along to the channel

    Declaration
    public IDictionary<string, string> Cookies { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.IDictionary<System.String, System.String>

    Timeout

    Get/Sets the Timeout of the IClient

    Declaration
    public Nullable<int> Timeout { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Int32>

    The number of milliseconds to wait before the request times out. The default value is 100,000 milliseconds (100 seconds).

    Methods

    CreateChannel<T>()

    Declaration
    public T CreateChannel<T>()
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T
    Exceptions
    Type Condition
    System.NotImplementedException

    CreateRestChannel()

    Creates a dynamic channel

    Declaration
    public IRestClientProxyInvoker CreateRestChannel()
    Returns
    Type Description
    IRestClientProxyInvoker

    Implements

    IClientChannelFactory

    Extension Methods

    EnumExtensions.GetNames<TEnum>(TEnum)
    In This Article
    Back to top (c) Meriworks 2002-2022