Class GraphHttpClientContainer
This class is used to handle multiple http clients within one service. This class extends the concurrent dictionary and contains a mapping from a key for the client to the http client itself.
Implements
Inherited Members
ConcurrentDictionary<String, IGraphHttpClient>.TryUpdate(String, IGraphHttpClient, IGraphHttpClient)
System.Collections.Concurrent.ConcurrentDictionary<System.String, Microsoft.Graph.Communications.Common.Transport.IGraphHttpClient>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String, Microsoft.Graph.Communications.Common.Transport.IGraphHttpClient>>.CopyTo(System.Collections.Generic.KeyValuePair<System.String, Microsoft.Graph.Communications.Common.Transport.IGraphHttpClient>[], System.Int32)
System.Collections.Concurrent.ConcurrentDictionary<System.String, Microsoft.Graph.Communications.Common.Transport.IGraphHttpClient>.System.Collections.Generic.IDictionary<System.String, Microsoft.Graph.Communications.Common.Transport.IGraphHttpClient>.Add(System.String, Microsoft.Graph.Communications.Common.Transport.IGraphHttpClient)
System.Collections.Concurrent.ConcurrentDictionary<System.String, Microsoft.Graph.Communications.Common.Transport.IGraphHttpClient>.System.Collections.Generic.IDictionary<System.String, Microsoft.Graph.Communications.Common.Transport.IGraphHttpClient>.Remove(System.String)
System.Collections.Concurrent.ConcurrentDictionary<System.String, Microsoft.Graph.Communications.Common.Transport.IGraphHttpClient>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String, Microsoft.Graph.Communications.Common.Transport.IGraphHttpClient>>.Add(System.Collections.Generic.KeyValuePair<System.String, Microsoft.Graph.Communications.Common.Transport.IGraphHttpClient>)
System.Collections.Concurrent.ConcurrentDictionary<System.String, Microsoft.Graph.Communications.Common.Transport.IGraphHttpClient>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String, Microsoft.Graph.Communications.Common.Transport.IGraphHttpClient>>.Contains(System.Collections.Generic.KeyValuePair<System.String, Microsoft.Graph.Communications.Common.Transport.IGraphHttpClient>)
System.Collections.Concurrent.ConcurrentDictionary<System.String, Microsoft.Graph.Communications.Common.Transport.IGraphHttpClient>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String, Microsoft.Graph.Communications.Common.Transport.IGraphHttpClient>>.Remove(System.Collections.Generic.KeyValuePair<System.String, Microsoft.Graph.Communications.Common.Transport.IGraphHttpClient>)
System.Collections.Concurrent.ConcurrentDictionary<System.String, Microsoft.Graph.Communications.Common.Transport.IGraphHttpClient>.System.Collections.IDictionary.get_Item(System.Object)
System.Collections.Concurrent.ConcurrentDictionary<System.String, Microsoft.Graph.Communications.Common.Transport.IGraphHttpClient>.System.Collections.IDictionary.set_Item(System.Object, System.Object)
System.Collections.Concurrent.ConcurrentDictionary<System.String, Microsoft.Graph.Communications.Common.Transport.IGraphHttpClient>.System.Collections.Generic.IReadOnlyDictionary<System.String, Microsoft.Graph.Communications.Common.Transport.IGraphHttpClient>.Keys
System.Collections.Concurrent.ConcurrentDictionary<System.String, Microsoft.Graph.Communications.Common.Transport.IGraphHttpClient>.System.Collections.Generic.IReadOnlyDictionary<System.String, Microsoft.Graph.Communications.Common.Transport.IGraphHttpClient>.Values
System.Collections.Concurrent.ConcurrentDictionary<System.String, Microsoft.Graph.Communications.Common.Transport.IGraphHttpClient>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String, Microsoft.Graph.Communications.Common.Transport.IGraphHttpClient>>.IsReadOnly
Namespace: Microsoft.Graph.Communications.Common.Transport
Assembly: Microsoft.Graph.Communications.Common.dll
Syntax
public class GraphHttpClientContainer : ConcurrentDictionary<string, IGraphHttpClient>, IDictionary<string, IGraphHttpClient>, ICollection<KeyValuePair<string, IGraphHttpClient>>, IDictionary, ICollection, IReadOnlyDictionary<string, IGraphHttpClient>, IReadOnlyCollection<KeyValuePair<string, IGraphHttpClient>>, IEnumerable<KeyValuePair<string, IGraphHttpClient>>, IEnumerable
Constructors
GraphHttpClientContainer(IGraphHttpClient)
Initializes a new instance of the GraphHttpClientContainer class.
Declaration
public GraphHttpClientContainer(IGraphHttpClient defaultGraphHttpClient)
Parameters
Type | Name | Description |
---|---|---|
IGraphHttpClient | defaultGraphHttpClient | The default graph HTTP client. |
Properties
DefaultGraphHttpClient
Gets the default graph HTTP client.
Declaration
public IGraphHttpClient DefaultGraphHttpClient { get; }
Property Value
Type | Description |
---|---|
IGraphHttpClient |