protected override void OnHandle(Request request) { if (request.Category == RequestCategory.Category2) { request.IsHandled = true; } }
protected abstract void OnHandle(Request request);
public void Handle(Request request) { OnHandle(request); if (!request.IsHandled) { if (_successor != null) { _successor.Handle(request); Console.WriteLine("is handle...."); } } }