public static void Initialize(IPeerHandler peerHandler) { PeerHandler = peerHandler; Initialized = true; _headerBytes = new Dictionary <int, byte[]>(); }
public static void Initialize(ILogger logger, IPeerHandler peerHandler) { Logger = logger; PeerHandler = peerHandler; Initialized = true; _headers = new Dictionary <int, byte[]>(); _headerBuffers = new ConcurrentBag <byte[]>(); }