Example #1
0
        private IDataAccessService GetDataAccessService(DatabaseInformation dbInfo)
        {
            if (DataAccessServices.TryGetValue(dbInfo, out var dataService))
            {
                return(dataService);
            }

            dataService = ServiceProvider.GetService <IDataAccessService>();
            dataService.DatabaseInformation = dbInfo;
            DataAccessServices.Add(dbInfo, dataService);

            return(dataService);
        }