public HookManager(ServerEventDispatcher dispatcher, VirtualScreenManager screen)
 {
     _dispatcher = dispatcher;
     _screen     = screen;
     Hook        = new WindowsGlobalHook();
     ClientState = screen.State;
 }
예제 #2
0
        public RemoteClient(EndPoint endPoint)
        {
            state = new ClientState(Environment.MachineName);

            _connection = new ServerConnectionManager(endPoint);
            _dispatcher = new ServerEventDispatcher(_connection);
            _screen     = new VirtualScreenManager(state);
            _hook       = new HookManager(_dispatcher, _screen);
        }