Show / Hide Table of Contents

    Class GraphClientWrapper

    The graph client wrapper.

    Inheritance
    Object
    GraphClientWrapper
    Implements
    IGraphClient
    Namespace: Microsoft.Graph.Communications.Client.Transport
    Assembly: Microsoft.Graph.Communications.Client.dll
    Syntax
    public class GraphClientWrapper : ObjectRoot, IGraphClient

    Constructors

    GraphClientWrapper(IGraphClient, GraphClientContext)

    Initializes a new instance of the GraphClientWrapper class.

    Declaration
    public GraphClientWrapper(IGraphClient client, GraphClientContext context)
    Parameters
    Type Name Description
    IGraphClient client

    The client.

    GraphClientContext context

    The context.

    Properties

    Context

    Gets the context.

    Declaration
    public GraphClientContext Context { get; }
    Property Value
    Type Description
    GraphClientContext

    DefaultProperties

    Gets the default properties.

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

    GraphLogger

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

    Methods

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

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

    SendAsync<T1, T2>(IGraphRequest<T1>, CancellationToken)

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

    Implements

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