Class GraphHttpClientFactory
The HTTP graph client factory.
Implements
Inherited Members
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. |