/// <summary>重新加载</summary> private void Reload() { if (this.restartCount > 0) { KernelContext.Log.Info(string.Format(I18n.Strings["application_is_reloading"], StoragesConfiguration.ApplicationName)); // 重新加载配置信息 StoragesConfigurationView.Instance.Reload(); } else { KernelContext.Log.Info(string.Format(I18n.Strings["application_is_loading"], StoragesConfiguration.ApplicationName)); } // 创建对象构建器(Spring.NET) string springObjectFile = StoragesConfigurationView.Instance.Configuration.Keys["SpringObjectFile"].Value; SpringObjectBuilder objectBuilder = SpringObjectBuilder.Create(StoragesConfiguration.ApplicationName, springObjectFile); // 创建数据服务对象 this.m_StorageSchemaService = objectBuilder.GetObject <IStorageSchemaService>(typeof(IStorageSchemaService)); this.m_StorageNodeService = objectBuilder.GetObject <IStorageNodeService>(typeof(IStorageNodeService)); KernelContext.Log.Info(string.Format(I18n.Strings["application_is_successfully_loaded"], StoragesConfiguration.ApplicationName)); }
/// <summary>重新加载</summary> private void Reload() { if (this.restartCount > 0) { KernelContext.Log.Info(string.Format(I18n.Strings["application_is_reloading"], AppsConfiguration.ApplicationName)); // 重新加载配置信息 AppsConfigurationView.Instance.Reload(); } else { KernelContext.Log.Info(string.Format(I18n.Strings["application_is_loading"], AppsConfiguration.ApplicationName)); } // 创建对象构建器(Spring.NET) string springObjectFile = AppsConfigurationView.Instance.Configuration.Keys["SpringObjectFile"].Value; SpringObjectBuilder objectBuilder = SpringObjectBuilder.Create(AppsConfiguration.ApplicationName, springObjectFile); // 创建数据服务对象 this.m_ApplicationService = objectBuilder.GetObject <IApplicationService>(typeof(IApplicationService)); this.m_ApplicationOptionService = objectBuilder.GetObject <IApplicationOptionService>(typeof(IApplicationOptionService)); this.m_ApplicationErrorService = objectBuilder.GetObject <IApplicationErrorService>(typeof(IApplicationErrorService)); this.m_ApplicationEventService = objectBuilder.GetObject <IApplicationEventService>(typeof(IApplicationEventService)); this.m_ApplicationFeatureService = objectBuilder.GetObject <IApplicationFeatureService>(typeof(IApplicationFeatureService)); this.m_ApplicationFeatureDateLimitService = objectBuilder.GetObject <IApplicationFeatureDateLimitService>(typeof(IApplicationFeatureDateLimitService)); this.m_ApplicationSettingService = objectBuilder.GetObject <IApplicationSettingService>(typeof(IApplicationSettingService)); this.m_ApplicationSettingGroupService = objectBuilder.GetObject <IApplicationSettingGroupService>(typeof(IApplicationSettingGroupService)); this.m_ApplicationMenuService = objectBuilder.GetObject <IApplicationMenuService>(typeof(IApplicationMenuService)); this.m_ApplicationMethodService = objectBuilder.GetObject <IApplicationMethodService>(typeof(IApplicationMethodService)); KernelContext.Log.Info(string.Format(I18n.Strings["application_is_successfully_loaded"], AppsConfiguration.ApplicationName)); }
/// <summary>重新加载</summary> private void Reload() { // 创建对象构建器(Spring.NET) string springObjectFile = VerificationCodeConfigurationView.Instance.Configuration.Keys["SpringObjectFile"].Value; SpringObjectBuilder objectBuilder = SpringObjectBuilder.Create(VerificationCodeConfiguration.ApplicationName, springObjectFile); // 创建数据服务对象 this.m_VerificationCodeService = objectBuilder.GetObject <IVerificationCodeService>(typeof(IVerificationCodeService)); this.m_VerificationCodeTemplateService = objectBuilder.GetObject <IVerificationCodeTemplateService>(typeof(IVerificationCodeTemplateService)); }
public void Reload() { this.configuration = HumanResourcesConfigurationView.Instance.Configuration; // 创建对象构建器(Spring.NET) string springObjectFile = this.configuration.Keys["SpringObjectFile"].Value; SpringObjectBuilder objectBuilder = SpringObjectBuilder.Create(HumanResourcesConfiguration.ApplicationName, springObjectFile); this.m_HumanResourceOfficerService = objectBuilder.GetObject <IHumanResourceOfficerService>(typeof(IHumanResourceOfficerService)); this.m_GeneralAccountService = objectBuilder.GetObject <IGeneralAccountService>(typeof(IGeneralAccountService)); }
/// <summary>重新加载</summary> private void Reload() { // 创建对象构建器(Spring.NET) string springObjectFile = WebConfigurationView.Instance.Configuration.Keys["SpringObjectFile"].Value; SpringObjectBuilder objectBuilder = SpringObjectBuilder.Create(WebConfiguration.APP_NAME_CUSTOMIZES, springObjectFile); this.m_CustomizePageService = objectBuilder.GetObject <ICustomizePageService>(typeof(ICustomizePageService)); this.m_CustomizeContentService = objectBuilder.GetObject <ICustomizeContentService>(typeof(ICustomizeContentService)); this.m_CustomizeLayoutService = objectBuilder.GetObject <ICustomizeLayoutService>(typeof(ICustomizeLayoutService)); this.m_CustomizeWidgetService = objectBuilder.GetObject <ICustomizeWidgetService>(typeof(ICustomizeWidgetService)); this.m_CustomizeWidgetInstanceService = objectBuilder.GetObject <ICustomizeWidgetInstanceService>(typeof(ICustomizeWidgetInstanceService)); KernelContext.Log.Info(string.Format(I18n.Strings["application_is_successfully_loaded"], WebConfiguration.APP_NAME_CUSTOMIZES)); }
/// <summary>构造函数:TaskWorkService()</summary> public TaskWorkService() { // 创建对象构建器(Spring.NET) string springObjectFile = TasksConfigurationView.Instance.Configuration.Keys["SpringObjectFile"].Value; SpringObjectBuilder objectBuilder = SpringObjectBuilder.Create(TasksConfiguration.ApplicationName, springObjectFile); // 创建数据提供器 this.provider = objectBuilder.GetObject <ITaskWorkProvider>(typeof(ITaskWorkProvider)); // 创建提醒程序 var list = TasksConfigurationView.Instance.Configuration.Notifications; for (var i = 0; i < list.AllKeys.Length; i++) { var type = list[list.AllKeys[i]].Value; if (!string.IsNullOrEmpty(type)) { var obj = KernelContext.CreateObject(type); if (obj != null && obj is INotificationProvider) { this.notifications.Add(list.AllKeys[i], (INotificationProvider)obj); } } } }
/// <summary>重新加载</summary> private void Reload() { if (this.restartCount > 0) { // 重新加载配置信息 AttachmentStorageConfigurationView.Instance.Reload(); } // 创建对象构建器(Spring.NET) string springObjectFile = AttachmentStorageConfigurationView.Instance.Configuration.Keys["SpringObjectFile"].Value; SpringObjectBuilder objectBuilder = SpringObjectBuilder.Create(AttachmentStorageConfiguration.ApplicationName, springObjectFile); // 创建数据服务对象 this.m_AttachmentFileService = objectBuilder.GetObject <IAttachmentFileService>(typeof(IAttachmentFileService)); this.m_AttachmentDistributedFileService = objectBuilder.GetObject <IAttachmentDistributedFileService>(typeof(IAttachmentDistributedFileService)); this.m_AttachmentWarnService = objectBuilder.GetObject <IAttachmentWarnService>(typeof(IAttachmentWarnService)); }
/// <summary>构造函数</summary> public VerificationCodeTemplateService() { // 创建对象构建器(Spring.NET) string springObjectFile = VerificationCodeConfigurationView.Instance.Configuration.Keys["SpringObjectFile"].Value; SpringObjectBuilder objectBuilder = SpringObjectBuilder.Create(VerificationCodeConfiguration.ApplicationName, springObjectFile); this.provider = objectBuilder.GetObject <IVerificationCodeTemplateProvider>(typeof(IVerificationCodeTemplateProvider)); }
/// <summary>重新加载</summary> private void Reload() { // 创建对象构建器(Spring.NET) string springObjectFile = TemplateContentConfigurationView.Instance.Configuration.Keys["SpringObjectFile"].Value; SpringObjectBuilder objectBuilder = SpringObjectBuilder.Create(TemplateContentConfiguration.ApplicationName, springObjectFile); this.m_TemplateContentService = objectBuilder.GetObject <ITemplateContentService>(typeof(ITemplateContentService)); }
public AttachmentDistributedFileService() { // 创建对象构建器(Spring.NET) string springObjectFile = AttachmentStorageConfigurationView.Instance.Configuration.Keys["SpringObjectFile"].Value; SpringObjectBuilder objectBuilder = SpringObjectBuilder.Create(AttachmentStorageConfiguration.ApplicationName, springObjectFile); // 创建数据服务对象 this.provider = objectBuilder.GetObject <IAttachmentDistributedFileProvider>(typeof(IAttachmentDistributedFileProvider)); }
public RegionService() { // 创建对象构建器(Spring.NET) string springObjectFile = RegionsConfigurationView.Instance.Configuration.Keys["SpringObjectFile"].Value; SpringObjectBuilder objectBuilder = SpringObjectBuilder.Create(RegionsConfiguration.ApplicationName, springObjectFile); // 创建数据提供器 this.provider = objectBuilder.GetObject <IRegionProvider>(typeof(IRegionProvider)); }
public ConnectCallService() { // 创建对象构建器(Spring.NET) string springObjectFile = ConnectConfigurationView.Instance.Configuration.Keys["SpringObjectFile"].Value; SpringObjectBuilder objectBuilder = SpringObjectBuilder.Create(ConnectConfiguration.ApplicationName, springObjectFile); // 创建数据提供器 this.provider = objectBuilder.GetObject <IConnectCallProvider>(typeof(IConnectCallProvider)); // 设置队列 this.queue = objectBuilder.GetObject <IMessageQueueObject>("X3Platform.Connect.Queues.ConnectCallQueue", new object[] { ConnectConfigurationView.Instance.MessageQueueHostName, ConnectConfigurationView.Instance.MessageQueuePort, ConnectConfigurationView.Instance.MessageQueueUsername, ConnectConfigurationView.Instance.MessageQueuePassword, ConnectConfigurationView.Instance.MessageQueueName }); }
public ConnectAuthorizationCodeService() { // 创建对象构建器(Spring.NET) string springObjectFile = ConnectConfigurationView.Instance.Configuration.Keys["SpringObjectFile"].Value; SpringObjectBuilder objectBuilder = SpringObjectBuilder.Create(ConnectConfiguration.ApplicationName, springObjectFile); // 创建数据提供器 this.provider = objectBuilder.GetObject <IConnectAuthorizationCodeProvider>(typeof(IConnectAuthorizationCodeProvider)); }
/// <summary>构造函数</summary> public AccountBindingService() { // 创建对象构建器(Spring.NET) string springObjectFile = MembershipConfigurationView.Instance.Configuration.Keys["SpringObjectFile"].Value; SpringObjectBuilder objectBuilder = SpringObjectBuilder.Create(MembershipConfiguration.ApplicationName, springObjectFile); // 创建数据提供器 this.provider = objectBuilder.GetObject <IAccountBindingProvider>(typeof(IAccountBindingProvider)); }
/// <summary>重新加载</summary> private void Reload() { if (this.restartCount > 0) { KernelContext.Log.Info(string.Format(I18n.Strings["application_is_reloading"], ConnectConfiguration.ApplicationName)); // 重新加载配置信息 ConnectConfigurationView.Instance.Reload(); } else { KernelContext.Log.Info(string.Format(I18n.Strings["application_is_loading"], ConnectConfiguration.ApplicationName)); } // 创建对象构建器(Spring.NET) string springObjectFile = ConnectConfigurationView.Instance.Configuration.Keys["SpringObjectFile"].Value; SpringObjectBuilder objectBuilder = SpringObjectBuilder.Create(ConnectConfiguration.ApplicationName, springObjectFile); // 创建数据服务对象 this.m_ConnectService = objectBuilder.GetObject <IConnectService>(typeof(IConnectService)); this.m_ConnectAccessTokenService = objectBuilder.GetObject <IConnectAccessTokenService>(typeof(IConnectAccessTokenService)); this.m_ConnectAuthorizationCodeService = objectBuilder.GetObject <IConnectAuthorizationCodeService>(typeof(IConnectAuthorizationCodeService)); this.m_ConnectCallService = objectBuilder.GetObject <IConnectCallService>(typeof(IConnectCallService)); // ------------------------------------------------------- // 设置定时器 // ------------------------------------------------------- // 由数据库来定时任务来清理过期会话 timer.Enabled = true; timer.Interval = ConnectConfigurationView.Instance.SessionTimerInterval * 60 * 1000; timer.Elapsed += delegate(object sender, ElapsedEventArgs e) { ConnectContext.Instance.ConnectAccessTokenService.Clear(DateTime.Now.AddHours(-ConnectConfigurationView.Instance.SessionTimeLimit)); }; timer.Start(); KernelContext.Log.Info(string.Format(I18n.Strings["application_is_successfully_loaded"], ConnectConfiguration.ApplicationName)); }
/// <summary>构造函数</summary> public CustomizeLayoutService() { // 创建对象构建器(Spring.NET) string springObjectFile = WebConfigurationView.Instance.Configuration.Keys["SpringObjectFile"].Value; SpringObjectBuilder objectBuilder = SpringObjectBuilder.Create(WebConfiguration.APP_NAME_CUSTOMIZES, springObjectFile); // 创建数据提供器 this.provider = objectBuilder.GetObject <ICustomizeLayoutProvider>(typeof(ICustomizeLayoutProvider)); }
/// <summary>构造函数</summary> public TemplateContentService() { // 创建对象构建器(Spring.NET) string springObjectFile = TemplateContentConfigurationView.Instance.Configuration.Keys["SpringObjectFile"].Value; SpringObjectBuilder objectBuilder = SpringObjectBuilder.Create(TemplateContentConfiguration.ApplicationName, springObjectFile); // 创建数据提供器 this.provider = objectBuilder.GetObject <ITemplateContentProvider>(typeof(ITemplateContentProvider)); }
/// <summary>构造函数</summary> public EntityDraftService() { // 创建对象构建器(Spring.NET) string springObjectFile = EntitiesConfigurationView.Instance.Configuration.Keys["SpringObjectFile"].Value; SpringObjectBuilder objectBuilder = SpringObjectBuilder.Create(EntitiesConfiguration.ApplicationName, springObjectFile); // 创建数据提供器 provider = objectBuilder.GetObject <IEntityDraftProvider>(typeof(IEntityDraftProvider)); }
/// <summary>重新加载</summary> private void Reload() { this.configuration = IPQueryConfigurationView.Instance.Configuration; // 创建对象构建器(Spring.NET) string springObjectFile = this.configuration.Keys["SpringObjectFile"].Value; SpringObjectBuilder objectBuilder = SpringObjectBuilder.Create(IPQueryConfiguration.ApplicationName, springObjectFile); this.ipAddressParser = objectBuilder.GetObject <IPAddressParser>(typeof(IPAddressParser)); }
/// <summary>构造函数</summary> public AuthorityService() { this.configuration = AuthorityConfigurationView.Instance.Configuration; // 创建对象构建器(Spring.NET) string springObjectFile = this.configuration.Keys["SpringObjectFile"].Value; SpringObjectBuilder objectBuilder = SpringObjectBuilder.Create(AuthorityConfiguration.ApplicationName, springObjectFile); this.provider = objectBuilder.GetObject <IAuthorityProvider>(typeof(IAuthorityProvider)); }
public HumanResourceOfficerService() { configuration = HumanResourcesConfigurationView.Instance.Configuration; // 创建对象构建器(Spring.NET) string springObjectFile = this.configuration.Keys["SpringObjectFile"].Value; SpringObjectBuilder objectBuilder = SpringObjectBuilder.Create(HumanResourcesConfiguration.ApplicationName, springObjectFile); this.m_MemberExtensionInformationProvider = objectBuilder.GetObject <IMemberExtensionInformationProvider>(typeof(IMemberExtensionInformationProvider)); }
/// <summary>重新加载</summary> private void Reload() { if (this.restartCount > 0) { // 重新加载配置信息 ForumConfigurationView.Instance.Reload(); } // 创建对象构建器(Spring.NET) string springObjectFile = ForumConfigurationView.Instance.Configuration.Keys["SpringObjectFile"].Value; SpringObjectBuilder objectBuilder = SpringObjectBuilder.Create(ForumConfiguration.ApplicationName, springObjectFile); // 创建数据服务对象 this.m_ForumCategoryService = objectBuilder.GetObject <IForumCategoryService>(typeof(IForumCategoryService)); this.m_ForumThreadService = objectBuilder.GetObject <IForumThreadService>(typeof(IForumThreadService)); this.m_ForumCommentService = objectBuilder.GetObject <IForumCommentService>(typeof(IForumCommentService)); this.m_ForumMemberService = objectBuilder.GetObject <IForumMemberService>(typeof(IForumMemberService)); this.m_ForumFollowService = objectBuilder.GetObject <IForumFollowService>(typeof(IForumFollowService)); }
/// <summary>构造函数</summary> public SMSService() { // 创建对象构建器(Spring.NET) string springObjectFile = SMSConfigurationView.Instance.Configuration.Keys["SpringObjectFile"].Value; SpringObjectBuilder objectBuilder = SpringObjectBuilder.Create(SMSConfiguration.ApplicationName, springObjectFile); this.provider = objectBuilder.GetObject <ISMSProvider>(typeof(ISMSProvider)); this.client = (IShortMessageClientProvider)KernelContext.CreateObject(SMSConfigurationView.Instance.ClientProvider); }
/// <summary></summary> public TaskCategoryService() { this.configuration = TasksConfigurationView.Instance.Configuration; // 创建对象构建器(Spring.NET) string springObjectFile = this.configuration.Keys["SpringObjectFile"].Value; SpringObjectBuilder objectBuilder = SpringObjectBuilder.Create(TasksConfiguration.ApplicationName, springObjectFile); // 创建数据提供器 this.provider = objectBuilder.GetObject <ITaskCategoryProvider>(typeof(ITaskCategoryProvider)); }
/// <summary> /// 构造函数:ApplicationEventService() /// </summary> public ApplicationEventService() { configuration = AppsConfigurationView.Instance.Configuration; // 创建对象构建器(Spring.NET) string springObjectFile = this.configuration.Keys["SpringObjectFile"].Value; SpringObjectBuilder objectBuilder = SpringObjectBuilder.Create(AppsConfiguration.ApplicationName, springObjectFile); // 创建数据提供器 this.provider = objectBuilder.GetObject <IApplicationEventProvider>(typeof(IApplicationEventProvider)); }
/// <summary>重新加载</summary> private void Reload() { if (this.restartCount > 0) { // 重新加载配置信息 BugConfigurationView.Instance.Reload(); } this.configuration = BugConfigurationView.Instance.Configuration; // 创建对象构建器(Spring.NET) string springObjectFile = this.configuration.Keys["SpringObjectFile"].Value; SpringObjectBuilder objectBuilder = SpringObjectBuilder.Create(BugConfiguration.ApplicationName, springObjectFile); // 创建数据服务对象 this.m_BugService = objectBuilder.GetObject <IBugService>(typeof(IBugService)); this.m_BugCategoryService = objectBuilder.GetObject <IBugCategoryService>(typeof(IBugCategoryService)); this.m_BugCommentService = objectBuilder.GetObject <IBugCommentService>(typeof(IBugCommentService)); this.m_BugHistoryService = objectBuilder.GetObject <IBugHistoryService>(typeof(IBugHistoryService)); }
/// <summary>构造函数</summary> public ForumFollowService() { this.configuration = ForumConfigurationView.Instance.Configuration; // 创建对象构建器(Spring.NET) string springObjectFile = this.configuration.Keys["SpringObjectFile"].Value; SpringObjectBuilder objectBuilder = SpringObjectBuilder.Create(ForumConfiguration.ApplicationName, springObjectFile); // 创建数据提供器 this.provider = objectBuilder.GetObject <IForumFollowProvider>(typeof(IForumFollowProvider)); }
public DigitalNumberService() { this.configuration = DigitalNumberConfigurationView.Instance.Configuration; // 创建对象构建器(Spring.NET) string springObjectFile = this.configuration.Keys["SpringObjectFile"].Value; SpringObjectBuilder objectBuilder = SpringObjectBuilder.Create(DigitalNumberConfiguration.ApplicationName, springObjectFile); // 创建数据服务对象 this.provider = objectBuilder.GetObject <IDigitalNumberProvider>(typeof(IDigitalNumberProvider)); }
/// <summary>构造函数</summary> public StandardOrganizationUnitService() { this.configuration = MembershipConfigurationView.Instance.Configuration; // 创建对象构建器(Spring.NET) string springObjectFile = this.configuration.Keys["SpringObjectFile"].Value; SpringObjectBuilder objectBuilder = SpringObjectBuilder.Create(MembershipConfiguration.ApplicationName, springObjectFile); // 创建数据提供器 this.provider = objectBuilder.GetObject <IStandardOrganizationUnitProvider>(typeof(IStandardOrganizationUnitProvider)); }
/// <summary>构造函数</summary> public JobGradeService() { this.configuration = MembershipConfigurationView.Instance.Configuration; // 创建对象构建器(Spring.NET) string springObjectFile = this.configuration.Keys["SpringObjectFile"].Value; SpringObjectBuilder objectBuilder = SpringObjectBuilder.Create(MembershipConfiguration.ApplicationName, springObjectFile); // ���������ṩ�� this.provider = objectBuilder.GetObject <IJobGradeProvider>(typeof(IJobGradeProvider)); }