1 implementation of IAsyncLocalContext
Microsoft.Extensions.AsyncState (1)
AsyncContext.cs (1)
9internal sealed class AsyncContext<T> : IAsyncLocalContext<T>
6 references to IAsyncLocalContext
Microsoft.AspNetCore.AsyncState (3)
AsyncContextHttpContext.cs (2)
13private readonly IAsyncLocalContext<T> _localContext; 17IAsyncLocalContext<T> localContext,
AsyncStateHttpContextExtensions.cs (1)
17/// Adds default implementations for <see cref="IAsyncState"/>, <see cref="IAsyncContext{T}"/>, and <see cref="IAsyncLocalContext{T}"/> services,
Microsoft.Extensions.AsyncState (2)
AsyncStateExtensions.cs (2)
17/// Adds default implementations for <see cref="IAsyncState"/>, <see cref="IAsyncContext{T}"/>, and <see cref="IAsyncLocalContext{T}"/> services. 29services.TryAddSingleton(typeof(IAsyncLocalContext<>), typeof(AsyncContext<>));
Microsoft.Extensions.AsyncState.Tests (1)
AsyncContextServiceCollectionExtensionsTests.cs (1)
35serviceDescriptor = services.First(x => x.ServiceType == typeof(IAsyncLocalContext<>));