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)] 71public async Task DisposingConnectionsClosesBothSidesOfThePipe(ConnectionStates states) 75var closeGracefully = (states & ConnectionStates.CloseGracefully) != 0; 76var applicationFaulted = (states & ConnectionStates.ApplicationFaulted) != 0; 77var transportFaulted = (states & ConnectionStates.TransportFaulted) != 0;