Show / Hide Table of Contents

    Interface IGraphClient

    This class abstracts any communication with different services. This client acts at an object level rather than wire level and thus providing richer experience when working with complex objects.

    Namespace: Microsoft.Graph.Communications.Common.Transport
    Assembly: Microsoft.Graph.Communications.Common.dll
    Syntax
    public interface IGraphClient

    Properties

    DefaultProperties

    Gets the default properties.

    Declaration
    IEnumerable<IGraphProperty> DefaultProperties { get; }
    Property Value
    Type Description
    IEnumerable<IGraphProperty>

    GraphLogger

    Gets the graph logger.

    Declaration
    IGraphLogger GraphLogger { get; }
    Property Value
    Type Description
    IGraphLogger

    Methods

    SendAsync<TRequest>(IGraphRequest<TRequest>, CancellationToken)

    Send a request as an asynchronous operation.

    Declaration
    Task<IGraphResponse> SendAsync<TRequest>(IGraphRequest<TRequest> request, CancellationToken cancellationToken = default(CancellationToken))
    
        where TRequest : class
    Parameters
    Type Name Description
    IGraphRequest<TRequest> request

    The request message to send.

    CancellationToken cancellationToken

    The cancellation token.

    Returns
    Type Description
    Task<IGraphResponse>

    The task object representing the asynchronous operation.

    Type Parameters
    Name Description
    TRequest

    Type of the content present in the request.

    SendAsync<TRequest, TResponse>(IGraphRequest<TRequest>, CancellationToken)

    Send a request as an asynchronous operation.

    Declaration
    Task<IGraphResponse<TResponse>> SendAsync<TRequest, TResponse>(IGraphRequest<TRequest> request, CancellationToken cancellationToken = default(CancellationToken))
    
        where TRequest : class where TResponse : class
    Parameters
    Type Name Description
    IGraphRequest<TRequest> request

    The request message to send.

    CancellationToken cancellationToken

    The cancellation token.

    Returns
    Type Description
    Task<IGraphResponse<TResponse>>

    The task object representing the asynchronous operation.

    Type Parameters
    Name Description
    TRequest

    Type of the content present in the request.

    TResponse

    Type of the expected content in response.

    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)
    Back to top Copyright (c) Microsoft Corporation. All rights reserved.