Пример #1
0
        public override bool Init()
        {
            if (CacheService == null)
            {
                LogProxy.FatalFormat(SERVICEINITFAIL, "CacheService", true);
            }

            if (!CacheService.IsInitialized)
            {
                return(false);
            }

            SynClientServiceInit();

            return(true);
        }
Пример #2
0
        public override bool Init()
        {
            if (MappingService == null)
            {
                LogProxy.FatalFormat(SERVICEINITFAIL, "MappingService", true);
            }

            if (!MappingService.IsInitialized)
            {
                return(false);
            }

            if (CacheService != null && !CacheService.IsInitialized)
            {
                return(false);
            }

            if (SynClientService != null && !SynClientService.IsInitialized)
            {
                return(false);
            }

            return(DbTableService.Init());
        }