public SocketServer(string hostName, int port, Responder responder = null) { if (hostName == null) throw new ArgumentNullException("hostName"); if (port < 0) throw new ArgumentOutOfRangeException("port"); this.responder = responder; this.hostName = hostName; this.port = port; }
public SocketServer(string hostName, int port, Responder responder = null) { if (hostName == null) { throw new ArgumentNullException("hostName"); } if (port < 0) { throw new ArgumentOutOfRangeException("port"); } this.responder = responder; this.hostName = hostName; this.port = port; }
public LocalTransceiver(Responder responder) { if (responder == null) throw new ArgumentNullException("responder"); this.responder = responder; }
public HttpListenerServer(IEnumerable <string> listenOnPrefixes, Responder responder) { _responder = responder; _prefixes = listenOnPrefixes; }
public void SetResponder(Responder responder) { this.responder = responder; }