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