Show / Hide Table of Contents

    Interface IGraphHttpClient

    Interface for Http transport client. Gives us a way to work with different instances of GraphClient through Dependency Injection.

    Inherited Members
    IGraphClient.SendAsync<TRequest>(IGraphRequest<TRequest>, CancellationToken)
    IGraphClient.SendAsync<TRequest, TResponse>(IGraphRequest<TRequest>, CancellationToken)
    IGraphClient.GraphLogger
    IGraphClient.DefaultProperties
    Namespace: Microsoft.Graph.Communications.Common.Transport
    Assembly: Microsoft.Graph.Communications.Common.dll
    Syntax
    public interface IGraphHttpClient : IGraphClient

    Properties

    CustomRedirectUriGenerator

    Gets or sets the custom redirect URI generator. This is called in case of a redirect (3XX) response from the request. Clients can use this to read the response and give the new redirect url to call in the next request.

    Declaration
    Func<HttpResponseMessage, Uri> CustomRedirectUriGenerator { get; set; }
    Property Value
    Type Description
    Func<HttpResponseMessage, Uri>

    The custom redirect URI generator.

    Methods

    Clone(HttpClient)

    Clones this instance with optional overrides.

    Declaration
    IGraphHttpClient Clone(HttpClient httpClient = null)
    Parameters
    Type Name Description
    HttpClient httpClient

    The HTTP client to replace the original.

    Returns
    Type Description
    IGraphHttpClient

    Cloned client with the updated properties.

    SendRawHttpRequestAsync(HttpRequestMessage, CancellationToken)

    Send a Http request as an asynchronous operation. The content sent using this is not parsed or logged.

    Declaration
    Task<HttpResponseMessage> SendRawHttpRequestAsync(HttpRequestMessage httpRequest, CancellationToken cancellationToken = default(CancellationToken))
    Parameters
    Type Name Description
    HttpRequestMessage httpRequest

    The http request message to send.

    CancellationToken cancellationToken

    The cancellation token.

    Returns
    Type Description
    Task<HttpResponseMessage>

    The task object representing the asynchronous operation.

    Extension Methods

    AdditionalDataExtensions.SetInAdditionalData(Object, String, Object)
    Extensions.Pin(Object)
    Extensions.ChangeType(Object, Type)
    Extensions.ChangeType<T>(Object)
    Extensions.TryDispose(Object, IGraphLogger)
    ReflectionUtils.GetPropertyUsingReflection(Object, String)
    ReflectionUtils.SetPropertyUsingReflection(Object, String, Object)
    Validator.IsNull(Object, String, String)
    Validator.NotNull<T>(T, String, String)
    Validator.Equals<T>(T, T, String, String)
    Validator.Equals<T, TE>(T, T, String)
    Validator.NotEquals<T>(T, T, String, String)

    See Also

    IGraphClient
    Back to top Copyright (c) Microsoft Corporation. All rights reserved.