20 references to ConnectionState
NuGet.Protocol (20)
Plugins\Connection.cs (18)
21private int _state = (int)ConnectionState.ReadyToConnect; 26public ConnectionState State => (ConnectionState)_state; 145if (_state != (int)ConnectionState.Closed) 147_state = (int)ConnectionState.Closing; 156_state = (int)ConnectionState.Closed; 172if (State != ConnectionState.ReadyToConnect) 177_state = (int)ConnectionState.Connecting; 191_state = (int)ConnectionState.Handshaking; 199_state = (int)ConnectionState.FailedToHandshake; 206_state = (int)ConnectionState.FailedToHandshake; 211_state = (int)ConnectionState.Connected; 234if (State == ConnectionState.Closing || 235State == ConnectionState.Closed) 240if (_state < (int)ConnectionState.Connecting) 279if (State == ConnectionState.Closing || 280State == ConnectionState.Closed) 285if (_state < (int)ConnectionState.Connecting)
Plugins\ConnectionState.cs (1)
10/// For example, any connection state before <see cref="ConnectionState.Connecting" />
Plugins\PluginFactory.cs (1)
224if (connection?.State == ConnectionState.Handshaking)