예제 #1
0
파일: Server.cs 프로젝트: Phyyl/WebServer
        public void Start(bool async = false)
        {
            token = new FlagToken();

            if (async)
            {
                Task.Run(StartAsync);
            }
            else
            {
                StartAsync().Wait();
            }
        }
예제 #2
0
파일: Server.cs 프로젝트: Phyyl/WebServer
 public void Stop()
 {
     token.Set();
     token = null;
 }