1 interface inheriting from IAsyncContext
Microsoft.Extensions.AsyncState (1)
IAsyncLocalContext.cs (1)
16public interface IAsyncLocalContext<T> : IAsyncContext<T>
1 implementation of IAsyncContext
Microsoft.AspNetCore.AsyncState (1)
AsyncContextHttpContext.cs (1)
10internal sealed class AsyncContextHttpContext<T> : IAsyncContext<T>
14 references to IAsyncContext
Microsoft.AspNetCore.AsyncState (2)
AsyncStateHttpContextExtensions.cs (2)
17/// Adds default implementations for <see cref="IAsyncState"/>, <see cref="IAsyncContext{T}"/>, and <see cref="IAsyncLocalContext{T}"/> services, 31.AddSingleton(typeof(IAsyncContext<>), typeof(AsyncContextHttpContext<>));
Microsoft.AspNetCore.AsyncState.Tests (3)
AsyncContextHttpContextOfTTests.cs (2)
16private readonly IAsyncContext<Thing> _context; 28_context = serviceProvider.GetRequiredService<IAsyncContext<Thing>>();
AsyncStateHttpContextExtensionsTests.cs (1)
31serviceDescriptor = services.First(x => x.ServiceType == typeof(IAsyncContext<>));
Microsoft.Extensions.AsyncState (4)
AsyncContext.cs (1)
7/// Represents an implementation of the <see cref="IAsyncContext{T}"/> interface.
AsyncStateExtensions.cs (2)
17/// Adds default implementations for <see cref="IAsyncState"/>, <see cref="IAsyncContext{T}"/>, and <see cref="IAsyncLocalContext{T}"/> services. 27services.TryAddSingleton(typeof(IAsyncContext<>), typeof(AsyncContext<>));
IAsyncLocalContext.cs (1)
13/// <remarks>This type is intended for internal use. Use <see cref="IAsyncContext{T}"/> instead.</remarks>
Microsoft.Extensions.AsyncState.Tests (5)
AsyncContextServiceCollectionExtensionsTests.cs (1)
29var serviceDescriptor = services.First(x => x.ServiceType == typeof(IAsyncContext<>));
AsyncStateTests.cs (4)
244var spOne = CreateAsyncState<Tuple<double>>(); 245var spTwo = CreateAsyncState<Tuple<int>>(); 254static IAsyncContext<T> CreateAsyncState<T>() 259return services.GetRequiredService<IAsyncContext<T>>();