Exemple #1
0
 protected override void OnHandle(Request request)
 {
     if (request.Category == RequestCategory.Category2)
     {
         request.IsHandled = true;
     }
 }
Exemple #2
0
 protected abstract void OnHandle(Request request);
Exemple #3
0
        public void Handle(Request request)
        {
            OnHandle(request);

            if (!request.IsHandled)
            {
                if (_successor != null)
                {
                    _successor.Handle(request);

                    Console.WriteLine("is handle....");
                }
            }
        }