protected override IApplicationModule OnBuild(IApplication application) { var context = new ElementContext { application }; IElementModuleDescription description = GetDescription(); return(new ElementModule(context, description)); }
public ElementModule(IElementContext context, IElementModuleDescription description) { Context = context ?? throw new ArgumentNullException(nameof(context)); Description = description ?? throw new ArgumentNullException(nameof(description)); }