Exemplo n.º 1
0
        public RemoteFunction <T> RegisterFunction <T>(SecureSocketClient client, string name)
        {
            lock (_syncLock)
            {
                if (_functionList.ContainsKey(name))
                {
                    return(_functionList[name] as RemoteFunction <T>);
                }

                InternalRemoteFunction <T> f = new InternalRemoteFunction <T>(client, name);
                _functionList.Add(name, f);
                return(f);
            }
        }
Exemplo n.º 2
0
 public InternalRemoteFunction(SecureSocketClient client, string name)
 {
     _name   = name;
     _client = client;
 }
Exemplo n.º 3
0
        public static void Init()
        {
            Socket = new SecureSocketClient();

            Socket.Connect("localhost", 100);
        }