Example #1
0
        public int?gINTProjectId()
        {
            dbConnectDetails cd = getConnectType(gINTTables.DB_DATA_TYPE);

            if (cd != null)
            {
                return(cd.ProjectId);
            }

            return(null);
        }
Example #2
0
        public ge_log_client(IServiceScopeFactory serviceScopeFactory, dbConnectDetails connectLogger, dbConnectDetails connectGint)
        {
            var scope = serviceScopeFactory.CreateScope();

            _context = scope.ServiceProvider.GetService <ge_DbContext>();

            IUnitOfWork _unit = new UnitOfWork(_context);

            _dataService = new DataService(_unit);

            IGintUnitOfWork _gunit = new GintUnitOfWork(connectGint);

            _mondService = new MONDLogService(_gunit);

            ILoggerFileUnitOfWork _lunit = new LogUnitOfWork(connectLogger);

            _logService = new LoggerFileService(_lunit);
        }