/// <summary> /// Helper to resolve and call handlers for the base page /// </summary> /// <typeparam name="TModel">Type of model to populate</typeparam> /// <param name="source">Source content</param> /// <param name="model">View model instance to populate</param> private void CallBasePageHandlers <TModel>(IPublishedContent source, TModel model) where TModel : BasePageViewModel, new() { var handlers = _handlerResolver.ResolveBasePageHandlers(); foreach (var handler in handlers) { handler.Handle(source, model); } }