public SoulProvider(IRequestQueue peer, IResponseQueue queue, IProtocol protocol) { _Queue = queue; _Protocol = protocol; _EventProvider = protocol.GetEventProvider(); _Serializer = protocol.GetSerialize(); _Peer = peer; _Peer.InvokeMethodEvent += _InvokeMethod; }
public SoulProvider(IRequestQueue peer, IResponseQueue queue, IProtocol protocol) { _WaitValues = new Dictionary <long, IValue>(); _Souls = new System.Collections.Concurrent.ConcurrentDictionary <long, SoulProxy>(); _EventFilter = new Queue <byte[]>(); _IdLandlord = new IdLandlord(); _Queue = queue; _Protocol = protocol; _EventProvider = protocol.GetEventProvider(); _Serializer = protocol.GetSerialize(); _Peer = peer; _Peer.InvokeMethodEvent += _InvokeMethod; }