コード例 #1
0
ファイル: SoulProvider.cs プロジェクト: tuita520/Regulus
        public SoulProvider(IRequestQueue peer, IResponseQueue queue, IProtocol protocol)
        {
            _Queue    = queue;
            _Protocol = protocol;

            _EventProvider = protocol.GetEventProvider();

            _Serializer              = protocol.GetSerialize();
            _Peer                    = peer;
            _Peer.InvokeMethodEvent += _InvokeMethod;
        }
コード例 #2
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;
        }