1 implementation of IAsyncState
Microsoft.Extensions.AsyncState (1)
AsyncState.cs (1)
13internal sealed class AsyncState : IAsyncState
9 references to IAsyncState
Microsoft.AspNetCore.AsyncState (1)
AsyncStateHttpContextExtensions.cs (1)
17/// Adds default implementations for <see cref="IAsyncState"/>, <see cref="IAsyncContext{T}"/>, and <see cref="IAsyncLocalContext{T}"/> services,
Microsoft.AspNetCore.AsyncState.Tests (2)
AsyncContextHttpContextOfTTests.cs (2)
15private readonly IAsyncState _asyncState; 29_asyncState = serviceProvider.GetRequiredService<IAsyncState>();
Microsoft.Extensions.AsyncState (4)
AsyncContext.cs (2)
13private readonly IAsyncState _state; 15public AsyncContext(IAsyncState state)
AsyncStateExtensions.cs (2)
17/// Adds default implementations for <see cref="IAsyncState"/>, <see cref="IAsyncContext{T}"/>, and <see cref="IAsyncLocalContext{T}"/> services. 28services.TryAddActivatedSingleton<IAsyncState, Microsoft.Extensions.AsyncState.AsyncState>();
Microsoft.Extensions.AsyncState.Tests (2)
AsyncContextServiceCollectionExtensionsTests.cs (1)
32serviceDescriptor = services.First(x => x.ServiceType == typeof(IAsyncState));
AsyncStateTests.cs (1)
258services.GetRequiredService<IAsyncState>().Initialize();