/// <summary> /// Constructs an instance of the host and starts listening for incoming connections. /// All listener threads are regular background threads. /// /// NOTE: the instance is not automatically thread safe! /// </summary> /// <param name="pipeName">The pipe name for incoming requests</param> /// <param name="log"></param> /// <param name="stats"></param> public NpHost(string pipeName, ILog log = null, IStats stats = null) { base.Log = log; base.Stats = stats; _pipeName = pipeName; _listener = new NpListener(_pipeName, log: base.Log, stats: base.Stats); _listener.RequestReieved += ClientConnectionMade; }