예제 #1
0
        public WhereClauseResult Lookup(string applicationName, ApplicationLookupContext lookupContext = null)
        {
            var context = _contextLookuper.LookupContext();

            if (lookupContext != null)
            {
                context.ApplicationLookupContext = lookupContext;
            }
            var resultString = _configurationService.Lookup <string>(String.Format(WcConfig, ConfigTypes.WhereClauses.GetRootLevel(), applicationName), context);

            return(BuildWhereClauseResult(resultString));
        }
예제 #2
0
        public T Lookup <T>(string configKey)
        {
            var lookupContext = _contextLookuper.LookupContext();

            return(_configService.Lookup <T>(configKey, lookupContext));
        }