1 write to ServiceScope
Microsoft.AspNetCore.Http.Connections (1)
Internal\HttpConnectionDispatcher.cs (1)
764connection.ServiceScope = context.RequestServices.CreateAsyncScope();
3 references to ServiceScope
Microsoft.AspNetCore.Http.Connections (2)
Internal\HttpConnectionContext.cs (1)
288ServiceScope?.Dispose();
Internal\HttpConnectionDispatcher.cs (1)
765newHttpContext.RequestServices = connection.ServiceScope.Value.ServiceProvider;
Microsoft.AspNetCore.Http.Connections.Tests (1)
HttpConnectionDispatcherTests.cs (1)
3089Assert.Throws<ObjectDisposedException>(() => connection.ServiceScope.Value.ServiceProvider.GetService<MessageWrapper>());