示例#1
0
 protected override void OnHandle(Request request)
 {
     if (request.Category == RequestCategory.Category1)
     {
         request.IsHandled = true;
     }
 }
示例#2
0
 protected abstract void OnHandle(Request request);
示例#3
0
 public void Handle(Request request)
 {
     OnHandle(request);
     if (!request.IsHandled) {
         if (_successor != null) {
             _successor.Handle(request);
         }
     }
 }