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 Graph
Declaration
public GraphHttpClientFactory(IGraphLogger logger, JsonSerializerSettings serializerSettings, HttpClient httpClient = null, string correlationIdHeader = null)
Parameters
Type | Name | Description |
---|---|---|
IGraph |
logger | Logger instance. |
Newtonsoft. |
serializerSettings | The serializer settings. |
Http |
httpClient | The HTTP client. |
String | correlationIdHeader | The correlation identifier header. |
Methods
Create(IGraphLogger)
Creates a new IGraph
Declaration
public IGraphClient Create(IGraphLogger logger = null)
Parameters
Type | Name | Description |
---|---|---|
IGraph |
logger | An optional IGraph |
Returns
Type | Description |
---|---|
IGraph |
The IGraph |