ALE.Web.Server.Create C# (CSharp) 메소드

Create() 공개 정적인 메소드

public static Create ( ) : Server
리턴 Server
        public static Server Create()
        {
            if (_instance == null)
            {
                _instance = new Server();
            }
            return _instance;
        }

Usage Example

예제 #1
0
        private void DoWork(object workItemState)
        {
            var aleContext = new AleContext(_context);

            EventLoop.Pend(() =>
            {
                Server.Create().Execute(aleContext);
                if (_callback != null)
                {
                    _callback(this);
                }
            });
        }