コード例 #1
0
ファイル: BaseRequestProcessor.cs プロジェクト: nickchal/pash
		public HandlersChain AddHandler (BaseRequestProcessorHandler handler)
		{
			if (chain == null) {
				chain = handler;
			}
			else {
				BaseRequestProcessorHandler current = chain;
				while (current.Next != null)
					current = current.Next;
				current.Next = handler;
			}
			return this;
		}
コード例 #2
0
 public HandlersChain AddHandler(BaseRequestProcessorHandler handler)
 {
     if (chain == null)
     {
         chain = handler;
     }
     else
     {
         BaseRequestProcessorHandler current = chain;
         while (current.Next != null)
         {
             current = current.Next;
         }
         current.Next = handler;
     }
     return(this);
 }