Show / Hide Table of Contents

    Class GraphHttpClientFactory

    The HTTP graph client factory.

    Inheritance
    Object
    ObjectRoot
    GraphHttpClientFactory
    Implements
    IGraphClientFactory
    Inherited Members
    ObjectRoot.GraphLogger
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Microsoft.Graph.Communications.Common.Transport
    Assembly: Microsoft.Graph.Communications.Common.dll
    Syntax
    public class GraphHttpClientFactory : ObjectRoot, IGraphClientFactory

    Constructors

    GraphHttpClientFactory(IGraphLogger, JsonSerializerSettings, HttpClient, String)

    Initializes a new instance of the GraphHttpClientFactory class.

    Declaration
    public GraphHttpClientFactory(IGraphLogger logger, JsonSerializerSettings serializerSettings, HttpClient httpClient = null, string correlationIdHeader = null)
    Parameters
    Type Name Description
    IGraphLogger logger

    Logger instance.

    Newtonsoft.Json.JsonSerializerSettings serializerSettings

    The serializer settings.

    HttpClient httpClient

    The HTTP client.

    String correlationIdHeader

    The correlation identifier header.

    Methods

    Create(IGraphLogger)

    Creates a new IGraphClient.

    Declaration
    public IGraphClient Create(IGraphLogger logger = null)
    Parameters
    Type Name Description
    IGraphLogger logger

    An optional IGraphLogger logger to be used in the new IGraphClient.

    Returns
    Type Description
    IGraphClient

    The IGraphClient.

    Implements

    IGraphClientFactory

    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

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