Exemple #1
0
 protected virtual void OnStopped()
 {
     State = ServerState.NotStarted;
     ManagedApp = null;
     m_StopTaskSrc.SetResult(true);
 }
Exemple #2
0
        public bool Start()
        {
            State = ServerState.Starting;

            ManagedApp = CreateAndStartServerInstance();

            if (ManagedApp != null)
            {
                State = ServerState.Running;
                return true;
            }
            else
            {
                State = ServerState.NotStarted;
                return false;
            }
        }