Kampute.HttpClient.Utilities Namespace

This namespace contains the general-purpose types that the client builds on: the shared HttpClient, scoped collections, caches, and throttled updates.

Classes

AsyncUpdateThrottle<T>Holds a value that is updated asynchronously, and skips an update when another one completed while it waited.
ExceptionExtensionsProvides extension methods that classify the exceptions of HTTP requests.
FlyweightCache<TKey, TValue>Provides a thread-safe cache that creates the value of a key on first use and returns the same value afterwards.
ScopedCollection<T>Holds items in nested scopes that flow with the asynchronous context of the code that begins them.
ScopedCollection<T>.ScopeRepresents a scope of a ScopedCollection<T>, which ends when it is disposed.
SharedDisposable<T>Shares one instance of a disposable resource among its users, and disposes it when the last of them releases it.
SharedDisposable<T>.ReferenceRepresents one user's reference to the shared resource.
SharedHttpClientProvides the HttpClient that instances of HttpRestClient share by default.