in src/main/csharp/Connection.cs [139:163]
public void Stop()
{
lock(stateLock)
{
switch(state)
{
case ConnectionState.Started:
ChangeState(ConnectionState.Stopping);
ChangeState(ConnectionState.Stopped);
break;
case ConnectionState.Starting:
throw new NMSException("Connection starting");
case ConnectionState.Closed:
throw new NMSException("Connection closed");
case ConnectionState.Created:
case ConnectionState.Connected:
case ConnectionState.Stopping:
case ConnectionState.Stopped:
break;
}
}
}