Пример #1
0
 public Visual(
     IGhostQuerier ghost_querier,
     Command command,
     Regulus.Utility.Console.IViewer viewer)
 {
     _GhostQuerier = ghost_querier;
     _Command      = command;
     _Viewer       = viewer;
 }
Пример #2
0
        public Application()
        {
            var protocol = _CreateProtocol("MessagingGatewayDataDefine.Protocol.dll", "DataDefine.Protocol");

            var agent = new Agent(protocol);

            _GhostQuerier = agent.GhostQuerier; // client
            _Binder       = agent.Binder;       // server
            _Agent        = agent;
        }
Пример #3
0
        public Agent(IProtocol protocol)
        {
            var protocol1 = protocol;

            _GhostRequest = new GhostRequest(protocol.GetSerialize());
            _AgentCore    = new AgentCore(protocol1);

            _CommandBridge = new CommandBridge(_AgentCore, _GhostRequest);
            _SoulProvider  = new SoulProvider(_CommandBridge.RequestQueue, _CommandBridge.ResponseQueue, protocol1);

            Binder       = _SoulProvider;
            GhostQuerier = this;
            _Launch();
        }