protected override void OnHandle(Request request) { if (request.Category == RequestCategory.Category1) { 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); } } }