ALE.Web.Server.Create C# (CSharp) Method

Create() public static method

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

Usage Example

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

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