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)); } }
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)); } }