Beispiel #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;
 }
Beispiel #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);
 }
Beispiel #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);
        }