Ejemplo n.º 1
0
 public IRequestReceiver GetReceiver(string protocol)
 {
     switch (protocol)
     {
         case "http": return httpReceiver ?? (httpReceiver = new HttpRequestReceiver(requestProcessor, logger));
         default: throw new NotSupportedException(string.Format("Protocol '{0}' is not supported", protocol));
     }
 }
Ejemplo n.º 2
0
        public IRequestReceiver GetReceiver(string protocol)
        {
            switch (protocol)
            {
            case "http": return(httpReceiver ?? (httpReceiver = new HttpRequestReceiver(requestProcessor, logger)));

            default: throw new NotSupportedException(string.Format("Protocol '{0}' is not supported", protocol));
            }
        }