public IDisposable AddHandlerMatcher(IHandlerMatcher handlerMatcher)
 {
     return(_handlerMactherCollection.Add(handlerMatcher));
 }
Example #2
0
 public MatchRuleMapHandler(IHttpHandler handler, IHandlerMatcher matchRule) : base(handler)
 {
     MethodContract.NotNull(handler, nameof(handler));
     MethodContract.NotNull(matchRule, nameof(matchRule));
     this.matchRule = matchRule;
 }
Example #3
0
 public MatchLinkRule(IHandlerMatcher localMatcher)
 {
     MethodContract.NotNull(localMatcher, nameof(localMatcher));
     this.localMatcher = localMatcher;
 }
 public IDisposable Add(IHandlerMatcher handler)
 {
     _handlers.Add(handler);
     return(new Disposable(() => _handlers.Remove(handler)));
 }