28 references to ConnectionStates
Microsoft.AspNetCore.Http.Connections.Tests (28)
HttpConnectionManagerTests.cs (28)
62
[InlineData(
ConnectionStates
.ClosedUngracefully |
ConnectionStates
.ApplicationNotFaulted |
ConnectionStates
.TransportNotFaulted)]
63
[InlineData(
ConnectionStates
.ClosedUngracefully |
ConnectionStates
.ApplicationNotFaulted |
ConnectionStates
.TransportFaulted)]
64
[InlineData(
ConnectionStates
.ClosedUngracefully |
ConnectionStates
.ApplicationFaulted |
ConnectionStates
.TransportFaulted)]
65
[InlineData(
ConnectionStates
.ClosedUngracefully |
ConnectionStates
.ApplicationFaulted |
ConnectionStates
.TransportNotFaulted)]
67
[InlineData(
ConnectionStates
.CloseGracefully |
ConnectionStates
.ApplicationNotFaulted |
ConnectionStates
.TransportNotFaulted)]
68
[InlineData(
ConnectionStates
.CloseGracefully |
ConnectionStates
.ApplicationNotFaulted |
ConnectionStates
.TransportFaulted)]
69
[InlineData(
ConnectionStates
.CloseGracefully |
ConnectionStates
.ApplicationFaulted |
ConnectionStates
.TransportFaulted)]
70
[InlineData(
ConnectionStates
.CloseGracefully |
ConnectionStates
.ApplicationFaulted |
ConnectionStates
.TransportNotFaulted)]
71
public async Task DisposingConnectionsClosesBothSidesOfThePipe(
ConnectionStates
states)
75
var closeGracefully = (states &
ConnectionStates
.CloseGracefully) != 0;
76
var applicationFaulted = (states &
ConnectionStates
.ApplicationFaulted) != 0;
77
var transportFaulted = (states &
ConnectionStates
.TransportFaulted) != 0;