4 instantiations of MessageWrapper
Microsoft.AspNetCore.Http.Connections.Tests (4)
HttpConnectionDispatcherTests.cs (4)
2963
services.AddSingleton(new
MessageWrapper
() { Buffer = new ReadOnlySequence<byte>(new byte[] { 1, 2, 3 }) });
2986
services.AddSingleton(new
MessageWrapper
() { Buffer = new ReadOnlySequence<byte>(new byte[] { 4, 5, 6 }) });
3018
return new
MessageWrapper
() { Buffer = new ReadOnlySequence<byte>(new byte[] { (byte)(iteration + 1), (byte)(iteration + 2), (byte)(iteration + 3) }) };
3073
return new
MessageWrapper
() { Buffer = new ReadOnlySequence<byte>(new byte[] { (byte)(iteration + 1), (byte)(iteration + 2), (byte)(iteration + 3) }) };
5 references to MessageWrapper
Microsoft.AspNetCore.Http.Connections.Tests (5)
HttpConnectionDispatcherTests.cs (5)
3015
services.AddScoped(typeof(
MessageWrapper
), _ =>
3070
services.AddScoped(typeof(
MessageWrapper
), _ =>
3089
Assert.Throws<ObjectDisposedException>(() => connection.ServiceScope.Value.ServiceProvider.GetService<
MessageWrapper
>());
3917
var
message = context.RequestServices.GetService<
MessageWrapper
>();