1 implementation of IAsyncLocalContext
Microsoft.Extensions.AsyncState (1)
AsyncContext.cs (1)
9
internal sealed class AsyncContext<T> :
IAsyncLocalContext
<T>
6 references to IAsyncLocalContext
Microsoft.AspNetCore.AsyncState (3)
AsyncContextHttpContext.cs (2)
13
private readonly
IAsyncLocalContext
<T> _localContext;
17
IAsyncLocalContext
<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.
29
services.TryAddSingleton(typeof(
IAsyncLocalContext
<>), typeof(AsyncContext<>));
Microsoft.Extensions.AsyncState.Tests (1)
AsyncContextServiceCollectionExtensionsTests.cs (1)
35
serviceDescriptor = services.First(x => x.ServiceType == typeof(
IAsyncLocalContext
<>));