private Delegate _BuildDelegate(EventInfo event_info, Guid new_soul_id, InvokeEventCallback invoke) { var eventCreator = _Protocol.GetEventProvider().Find(event_info); var map = _Protocol.GetMemberMap(); var id = map.GetEvent(event_info); return(eventCreator.Create(new_soul_id, id, invoke)); }
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; }