コード例 #1
0
ファイル: SoulNotifier.cs プロジェクト: bmjoy/Regulus
        public SoulNotifier()
        {
            _SupplyPassages   = new List <SoulPassage>();
            _SupplyIdLandlord = new IdLandlord();

            _UnsupplyPassages   = new List <SoulPassage>();
            _UnsupplyIdLandlord = new IdLandlord();
        }
コード例 #2
0
        public SoulProvider(IRequestQueue peer, IResponseQueue queue, IProtocol protocol)
        {
            _IdLandlord = new IdLandlord();
            _Queue      = queue;
            _Protocol   = protocol;

            _EventProvider = protocol.GetEventProvider();

            _Serializer              = protocol.GetSerialize();
            _Peer                    = peer;
            _Peer.InvokeMethodEvent += _InvokeMethod;
        }
コード例 #3
0
        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;
        }
コード例 #4
0
 public ReturnValueQueue()
 {
     _IdLandlord   = new IdLandlord();
     _ReturnValues = new Dictionary <long, IValue>();
 }
コード例 #5
0
ファイル: GhostEventHandler.cs プロジェクト: bmjoy/Regulus
 public GhostEventHandler()
 {
     _IdLandlord = new IdLandlord();
     _Runners    = new List <Invoker>();
 }