Exemple #1
0
 public CommandBridge(AgentCore ghost_provider, GhostRequest ghost_request)
 {
     RequestQueue  = this;
     ResponseQueue = this;
     _AgentCore    = ghost_provider;
     _GhostRequest = ghost_request;
 }
Exemple #2
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();
        }