示例#1
0
        public static void Initialize(IPeerHandler peerHandler)
        {
            PeerHandler = peerHandler;
            Initialized = true;

            _headerBytes = new Dictionary <int, byte[]>();
        }
示例#2
0
        public static void Initialize(ILogger logger, IPeerHandler peerHandler)
        {
            Logger      = logger;
            PeerHandler = peerHandler;
            Initialized = true;

            _headers       = new Dictionary <int, byte[]>();
            _headerBuffers = new ConcurrentBag <byte[]>();
        }