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