private void InitApplication() { // 初始化PortalService PortalService.Initialize(new string[] { "Aim.Examining.Model", "Aim.WorkFlow" }, typeof(Aim.Examining.Model.ExamModelBase <>)); //日志 log4net.Config.XmlConfigurator.Configure(); //日志、异常 //LogAttribute.del += WriteLog; //ExceptionAttribute.del += WriteLog; //检验序列号是否有效 //CheckSystemValid(); }
private void InitApplication() { // 初始化PortalService PortalService.Initialize(new string[] { "SP.Model", "Aim.WorkFlow" }, typeof(SP.Model.SPModelBase <>)); SearchCriterion search = new SearchCriterion(); search.DefaultPageSize = 30; //日志 log4net.Config.XmlConfigurator.Configure(); //日志、异常 LogAttribute.del += WriteLog; ExceptionAttribute.del += WriteLog; //检验序列号是否有效 //CheckSystemValid(); }