Example #1
0
        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;
        }
Example #3
0
        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;
 }
Example #5
0
 public void SetResponder(Responder responder)
 {
     this.responder = responder;
 }
 public void SetResponder(Responder responder)
 {
     this.responder = responder;
 }