接口定义:
/// <summary> /// Provides methods to activate an instantiated ViewComponent /// </summary> public interface IViewComponentActivator { /// <summary> /// When implemented in a type, activates an instantiated ViewComponent. /// </summary> /// <param name="viewComponent">The ViewComponent to activate.</param> /// <param name="context">The <see cref="ViewContext"/> for the executing <see cref="ViewComponent"/>.</param> void Activate(object viewComponent, ViewContext context); }