20 references to ConnectionState
NuGet.Protocol (20)
Plugins\Connection.cs (18)
23private int _state = (int)ConnectionState.ReadyToConnect; 28public ConnectionState State => (ConnectionState)_state; 147if (_state != (int)ConnectionState.Closed) 149_state = (int)ConnectionState.Closing; 158_state = (int)ConnectionState.Closed; 174if (State != ConnectionState.ReadyToConnect) 179_state = (int)ConnectionState.Connecting; 193_state = (int)ConnectionState.Handshaking; 201_state = (int)ConnectionState.FailedToHandshake; 208_state = (int)ConnectionState.FailedToHandshake; 213_state = (int)ConnectionState.Connected; 236if (State == ConnectionState.Closing || 237State == ConnectionState.Closed) 242if (_state < (int)ConnectionState.Connecting) 281if (State == ConnectionState.Closing || 282State == ConnectionState.Closed) 287if (_state < (int)ConnectionState.Connecting)
Plugins\ConnectionState.cs (1)
10/// For example, any connection state before <see cref="ConnectionState.Connecting" />
Plugins\PluginFactory.cs (1)
219if (connection?.State == ConnectionState.Handshaking)