示例#1
0
 public GhostMethodHandler(IGhost ghost, ReturnValueQueue return_value_queue, IProtocol protocol, Regulus.Remote.IGhostRequest requester)
 {
     _Ghost            = ghost;
     _ReturnValueQueue = return_value_queue;
     _Protocol         = protocol;
     _Requester        = requester;
 }
示例#2
0
 public AgentCore(IProtocol protocol)
 {
     _ReturnValueQueue = new ReturnValueQueue();
     _Protocol         = protocol;
     _GhostProvider    = _Protocol.GetInterfaceProvider();
     _Serializer       = _Protocol.GetSerialize();
     _Providers        = new Dictionary <Type, IProvider>();
     _AutoRelease      = new AutoRelease(_Requester, _Serializer);
 }
示例#3
0
        public GhostProvider(IProtocol protocol, IGhostRequest req)
        {
            _Active    = false;
            _Requester = req;

            _NotifierPassage   = new SoulNotifier();
            _ReturnValueQueue  = new ReturnValueQueue();
            _Protocol          = protocol;
            _InterfaceProvider = _Protocol.GetInterfaceProvider();
            _Serializer        = _Protocol.GetSerialize();
            _Providers         = new Dictionary <Type, IProvider>();
            _AutoRelease       = new AutoRelease(_Requester, _Serializer);
        }