private void MatchFilter(MsmqBindingFilter filter, IEnumerable<MatchState> queues) { foreach (MatchState state in queues) { int num = filter.Match(state.QueueName); if (num > state.LastMatchLength) { if (state.LastMatch != null) { state.LastMatch.MatchLost(this.host, state.QueueName, state.IsPrivate, state.CallbackState); } state.LastMatchLength = num; state.LastMatch = filter; state.CallbackState = filter.MatchFound(this.host, state.QueueName, state.IsPrivate); } } }
private void MatchFilter(MsmqBindingFilter filter, IEnumerable <MatchState> queues) { foreach (MatchState state in queues) { int num = filter.Match(state.QueueName); if (num > state.LastMatchLength) { if (state.LastMatch != null) { state.LastMatch.MatchLost(this.host, state.QueueName, state.IsPrivate, state.CallbackState); } state.LastMatchLength = num; state.LastMatch = filter; state.CallbackState = filter.MatchFound(this.host, state.QueueName, state.IsPrivate); } } }
void MatchFilter(MsmqBindingFilter filter, IEnumerable <MatchState> queues) { // Run through all the queues - see if we are better than any existing matches... foreach (MatchState state in queues) { int matchLength = filter.Match(state.QueueName); if (matchLength > state.LastMatchLength) { if (state.LastMatch != null) { state.LastMatch.MatchLost(this.host, state.QueueName, state.IsPrivate, state.CallbackState); } state.LastMatchLength = matchLength; state.LastMatch = filter; state.CallbackState = filter.MatchFound(this.host, state.QueueName, state.IsPrivate); } } }
void MatchFilter(MsmqBindingFilter filter, IEnumerable<MatchState> queues) { // Run through all the queues - see if we are better than any existing matches... foreach (MatchState state in queues) { int matchLength = filter.Match(state.QueueName); if (matchLength > state.LastMatchLength) { if (state.LastMatch != null) { state.LastMatch.MatchLost(this.host, state.QueueName, state.IsPrivate, state.CallbackState); } state.LastMatchLength = matchLength; state.LastMatch = filter; state.CallbackState = filter.MatchFound(this.host, state.QueueName, state.IsPrivate); } } }