public IQueue Create(Uri uri) { Guard.AgainstNull(uri, nameof(uri)); var parser = new NetMQUriParser(uri); return(new NetMQQueue(parser, _requestClientProvider.Get(parser.GetIPEndPoint(), _configuration.RequestTimeout))); }
public NetMQQueue(NetMQUriParser uriUriParser, INetMQRequestClient requestClient) { Guard.AgainstNull(uriUriParser, nameof(uriUriParser)); Guard.AgainstNull(requestClient, nameof(requestClient)); _requestClient = requestClient; _uriParser = uriUriParser; Uri = _uriParser.Uri; }