예제 #1
0
        /// <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));
        }
예제 #3
0
        /// <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()
        {
            // 创建对象构建器(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));
        }
        /// <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>
        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));
        }
        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));
        }
        /// <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));
        }
예제 #10
0
        /// <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));
        }
예제 #11
0
        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>
        private void Reload()
        {
            // 创建对象构建器(Spring.NET)
            string springObjectFile = SMSConfigurationView.Instance.Configuration.Keys["SpringObjectFile"].Value;

            SpringObjectBuilder objectBuilder = SpringObjectBuilder.Create(SMSConfiguration.ApplicationName, springObjectFile);

            // 创建数据服务对象
            this.m_SMSService = objectBuilder.GetObject <ISMSService>(typeof(ISMSService));
        }
        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 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()
        {
            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));
        }
예제 #17
0
        /// <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 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 StorageSchemaService()
        {
            this.configuration = StoragesConfigurationView.Instance.Configuration;

            // 创建对象构建器(Spring.NET)
            string springObjectFile = this.configuration.Keys["SpringObjectFile"].Value;

            SpringObjectBuilder objectBuilder = SpringObjectBuilder.Create(StoragesConfiguration.ApplicationName, springObjectFile);

            // 创建数据提供器
            this.provider = objectBuilder.GetObject <IStorageSchemaProvider>(typeof(IStorageSchemaProvider));
        }
        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));
        }
예제 #21
0
        /// <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));
        }
예제 #22
0
        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));
        }
예제 #23
0
        /// <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));
        }
        /// <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));
        }
예제 #25
0
        /// <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));
        }
예제 #26
0
        /// <summary>构造函数</summary>
        public AccountCacheService()
        {
            this.configuration = SessionsConfigurationView.Instance.Configuration;

            this.cacheStorage = new SyncDictionary <string, AccountCacheInfo>();

            // 创建对象构建器(Spring.NET)
            string springObjectFile = this.configuration.Keys["SpringObjectFile"].Value;

            SpringObjectBuilder objectBuilder = SpringObjectBuilder.Create(SessionsConfiguration.ApplicationName, springObjectFile);

            this.provider = objectBuilder.GetObject <IAccountCacheProvider>(typeof(IAccountCacheProvider));
        }
        /// <summary>构造函数</summary>
        public AttachmentWarnService()
        {
            // 读取配置信息
            this.configuration = AttachmentStorageConfigurationView.Instance.Configuration;

            // 创建对象构建器(Spring.NET)
            string springObjectFile = this.configuration.Keys["SpringObjectFile"].Value;

            SpringObjectBuilder objectBuilder = SpringObjectBuilder.Create(AttachmentStorageConfiguration.ApplicationName, springObjectFile);

            // 创建数据提供器
            this.provider = objectBuilder.GetObject <IAttachmentWarnProvider>(typeof(IAttachmentWarnProvider));
        }
        /// <summary>重新加载</summary>
        private void Reload()
        {
            if (this.restartCount > 0)
            {
                KernelContext.Log.Info(string.Format(I18n.Strings["application_is_reloading"], MembershipConfiguration.ApplicationName));

                // 重新加载配置信息
                MembershipConfigurationView.Instance.Reload();
            }
            else
            {
                KernelContext.Log.Info(string.Format(I18n.Strings["application_is_loading"], MembershipConfiguration.ApplicationName));
            }

            // 创建对象构建器(Spring.NET)
            string springObjectFile = MembershipConfigurationView.Instance.Configuration.Keys["SpringObjectFile"].Value;

            SpringObjectBuilder objectBuilder = SpringObjectBuilder.Create(MembershipConfiguration.ApplicationName, springObjectFile);

            this.m_PasswordEncryptionManagement = objectBuilder.GetObject <IPasswordEncryptionManagement>(typeof(IPasswordEncryptionManagement));

            this.m_AuthorizationObjectService = objectBuilder.GetObject <IAuthorizationObjectService>(typeof(IAuthorizationObjectService));
            this.m_AccountService             = objectBuilder.GetObject <IAccountService>(typeof(IAccountService));
            this.m_AccountLogService          = objectBuilder.GetObject <IAccountLogService>(typeof(IAccountLogService));
            this.m_AccountGrantService        = objectBuilder.GetObject <IAccountGrantService>(typeof(IAccountGrantService));
            this.m_AccountBindingService      = objectBuilder.GetObject <IAccountBindingService>(typeof(IAccountBindingService));
            this.m_AccountFriendService       = objectBuilder.GetObject <IAccountFriendService>(typeof(IAccountFriendService));
            this.m_MemberService                   = objectBuilder.GetObject <IMemberService>(typeof(IMemberService));
            this.m_OrganizationUnitService         = objectBuilder.GetObject <IOrganizationUnitService>(typeof(IOrganizationUnitService));
            this.m_RoleService                     = objectBuilder.GetObject <IRoleService>(typeof(IRoleService));
            this.m_GeneralRoleService              = objectBuilder.GetObject <IGeneralRoleService>(typeof(IGeneralRoleService));
            this.m_StandardGeneralRoleService      = objectBuilder.GetObject <IStandardGeneralRoleService>(typeof(IStandardGeneralRoleService));
            this.m_StandardRoleService             = objectBuilder.GetObject <IStandardRoleService>(typeof(IStandardRoleService));
            this.m_StandardOrganizationUnitService = objectBuilder.GetObject <IStandardOrganizationUnitService>(typeof(IStandardOrganizationUnitService));
            this.m_GroupService                    = objectBuilder.GetObject <IGroupService>(typeof(IGroupService));
            this.m_ComputerService                 = objectBuilder.GetObject <IComputerService>(typeof(IComputerService));
            this.m_CatalogService                  = objectBuilder.GetObject <ICatalogService>(typeof(ICatalogService));
            this.m_CatalogItemService              = objectBuilder.GetObject <ICatalogItemService>(typeof(ICatalogItemService));
            this.m_ContactService                  = objectBuilder.GetObject <IContactService>(typeof(IContactService));
            this.m_AssignedJobService              = objectBuilder.GetObject <IAssignedJobService>(typeof(IAssignedJobService));
            this.m_JobFamilyService                = objectBuilder.GetObject <IJobFamilyService>(typeof(IJobFamilyService));
            this.m_JobGradeService                 = objectBuilder.GetObject <IJobGradeService>(typeof(IJobGradeService));
            this.m_JobService         = objectBuilder.GetObject <IJobService>(typeof(IJobService));
            this.m_SettingService     = objectBuilder.GetObject <ISettingService>(typeof(ISettingService));
            this.m_CatalogService     = objectBuilder.GetObject <ICatalogService>(typeof(ICatalogService));
            this.m_CatalogItemService = objectBuilder.GetObject <ICatalogItemService>(typeof(ICatalogItemService));

            KernelContext.Log.Info(string.Format(I18n.Strings["application_is_successfully_loaded"], MembershipConfiguration.ApplicationName));
        }
        /// <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));
        }
예제 #30
0
        /// <summary>重新加载</summary>
        private void Reload()
        {
            if (this.restartCount > 0)
            {
                // 重新加载配置信息
                RegionsConfigurationView.Instance.Reload();
            }

            // 创建对象构建器(Spring.NET)
            string springObjectFile = RegionsConfigurationView.Instance.Configuration.Keys["SpringObjectFile"].Value;

            SpringObjectBuilder objectBuilder = SpringObjectBuilder.Create(RegionsConfiguration.ApplicationName, springObjectFile);

            // 创建数据服务对象
            this.m_RegionService = objectBuilder.GetObject <IRegionService>(typeof(IRegionService));
        }