protected AbstractMatcher(string queueName) { if (string.IsNullOrWhiteSpace(queueName)) { throw new ArgumentException("Should be not empty not null string.", "queueName"); } Logger = LogManager.GetLogger(GetType().FullName); _matchResult = MatchResult.Matches(queueName); }
public NamespaceMatcher(string queueName, string nameSpace) { if (string.IsNullOrWhiteSpace(queueName)) { throw new ArgumentException("Should be not empty not null string.", "queueName"); } if (string.IsNullOrWhiteSpace(nameSpace)) { throw new ArgumentException("Should be not empty not null string.", "nameSpace"); } _nameSpace = nameSpace.Replace(AnyWildCard, string.Empty); _cache = new Dictionary<Type, MatchResult>(); _matchResult = MatchResult.Matches(queueName); }