Exemplo n.º 1
0
        public void Start()
        {
            CytarServer.CustomSession((networkSession) =>
            {
                return(Activator.CreateInstance(CustomSessionType, networkSession) as Session);
            });

            CytarServer.WaitSession <CytarMPSession>((session) =>
            {
                if (AuthAPIContext != null)
                {
                    session.Join(AuthAPIContext);
                }
                else
                {
                    SessionReady(session);
                }
            });

            CytarServer.Start();
        }
Exemplo n.º 2
0
 public void UseTCP(string host, int port)
 {
     CytarServer.UseTCP(host, port);
 }