Show / Hide Table of Contents

    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.

    Inheritance
    Object
    ConcurrentDictionary<String, IGraphHttpClient>
    GraphHttpClientContainer
    Implements
    IDictionary<String, IGraphHttpClient>
    ICollection<KeyValuePair<String, IGraphHttpClient>>
    IDictionary
    ICollection
    IReadOnlyDictionary<String, IGraphHttpClient>
    IReadOnlyCollection<KeyValuePair<String, IGraphHttpClient>>
    IEnumerable<KeyValuePair<String, IGraphHttpClient>>
    IEnumerable
    Inherited Members
    ConcurrentDictionary<String, IGraphHttpClient>.TryAdd(String, IGraphHttpClient)
    ConcurrentDictionary<String, IGraphHttpClient>.ContainsKey(String)
    ConcurrentDictionary<String, IGraphHttpClient>.TryRemove(String, IGraphHttpClient)
    ConcurrentDictionary<String, IGraphHttpClient>.TryGetValue(String, IGraphHttpClient)
    ConcurrentDictionary<String, IGraphHttpClient>.TryUpdate(String, IGraphHttpClient, IGraphHttpClient)
    ConcurrentDictionary<String, IGraphHttpClient>.Clear()
    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)
    ConcurrentDictionary<String, IGraphHttpClient>.ToArray()
    ConcurrentDictionary<String, IGraphHttpClient>.GetEnumerator()
    ConcurrentDictionary<String, IGraphHttpClient>.GetOrAdd(String, Func<String, IGraphHttpClient>)
    ConcurrentDictionary<String, IGraphHttpClient>.GetOrAdd(String, IGraphHttpClient)
    ConcurrentDictionary<String, IGraphHttpClient>.GetOrAdd<TArg>(String, Func<String, TArg, IGraphHttpClient>, TArg)
    ConcurrentDictionary<String, IGraphHttpClient>.AddOrUpdate<TArg>(String, Func<String, TArg, IGraphHttpClient>, Func<String, IGraphHttpClient, TArg, IGraphHttpClient>, TArg)
    ConcurrentDictionary<String, IGraphHttpClient>.AddOrUpdate(String, Func<String, IGraphHttpClient>, Func<String, IGraphHttpClient, IGraphHttpClient>)
    ConcurrentDictionary<String, IGraphHttpClient>.AddOrUpdate(String, IGraphHttpClient, Func<String, IGraphHttpClient, 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>.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>)
    ConcurrentDictionary<String, IGraphHttpClient>.IEnumerable.GetEnumerator()
    ConcurrentDictionary<String, IGraphHttpClient>.IDictionary.Add(Object, Object)
    ConcurrentDictionary<String, IGraphHttpClient>.IDictionary.Contains(Object)
    ConcurrentDictionary<String, IGraphHttpClient>.IDictionary.GetEnumerator()
    ConcurrentDictionary<String, IGraphHttpClient>.IDictionary.Remove(Object)
    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)
    ConcurrentDictionary<String, IGraphHttpClient>.ICollection.CopyTo(Array, Int32)
    ConcurrentDictionary<String, IGraphHttpClient>.Item[String]
    ConcurrentDictionary<String, IGraphHttpClient>.Count
    ConcurrentDictionary<String, IGraphHttpClient>.IsEmpty
    ConcurrentDictionary<String, 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>.Keys
    ConcurrentDictionary<String, IGraphHttpClient>.Values
    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
    ConcurrentDictionary<String, IGraphHttpClient>.IDictionary.IsFixedSize
    ConcurrentDictionary<String, IGraphHttpClient>.IDictionary.IsReadOnly
    ConcurrentDictionary<String, IGraphHttpClient>.IDictionary.Keys
    ConcurrentDictionary<String, IGraphHttpClient>.IDictionary.Values
    ConcurrentDictionary<String, IGraphHttpClient>.IDictionary.Item[Object]
    ConcurrentDictionary<String, IGraphHttpClient>.ICollection.IsSynchronized
    ConcurrentDictionary<String, IGraphHttpClient>.ICollection.SyncRoot
    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 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

    Implements

    System.Collections.Generic.IDictionary<TKey,TValue>
    System.Collections.Generic.ICollection<T>
    System.Collections.IDictionary
    System.Collections.ICollection
    System.Collections.Generic.IReadOnlyDictionary<TKey,TValue>
    System.Collections.Generic.IReadOnlyCollection<T>
    System.Collections.Generic.IEnumerable<T>
    System.Collections.IEnumerable

    Extension Methods

    AdditionalDataExtensions.SetInAdditionalData(Object, String, Object)
    Extensions.Pin(Object)
    Extensions.ChangeType(Object, Type)
    Extensions.ChangeType<T>(Object)
    Extensions.TryDispose(Object, IGraphLogger)
    CollectionUtils.ForEach<T>(IEnumerable<T>, Action<T>)
    CollectionUtils.ForEachParallel<T>(IEnumerable<T>, Action<T>, IGraphLogger)
    CollectionUtils.GetValueOrDefault<TKey, TValue>(IDictionary<TKey, TValue>, TKey)
    CollectionUtils.GetValueOrDefault<TKey, TValue>(IDictionary<TKey, TValue>, TKey, TValue)
    CollectionUtils.AddRange<T>(ICollection<T>, IEnumerable<T>)
    CollectionUtils.ToSortedList<TKey, TValue>(IEnumerable<TValue>, Func<TValue, TKey>)
    ReflectionUtils.GetPropertyUsingReflection(Object, String)
    ReflectionUtils.SetPropertyUsingReflection(Object, String, Object)
    Validator.Any(IEnumerable)
    Validator.FirstObject(IEnumerable, Func<Object, Boolean>)
    Validator.FirstObject(IEnumerable)
    Validator.IsNull(Object, String, String)
    Validator.NotNull<T>(T, String, String)
    Validator.NotEmpty<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)
    Validator.VerifyNotContainsKey<TK, TV>(IDictionary<TK, TV>, TK)
    Validator.VerifyContainsKey<TK, TV>(IDictionary<TK, TV>, TK)
    Validator.VerifyContainsKey<TK, TV>(IReadOnlyDictionary<TK, TV>, TK)
    Validator.VerifyContains<T>(IEnumerable<T>, T)
    Back to top Copyright (c) Microsoft Corporation. All rights reserved.