public LocalizationServiceFactory(
            IExplicitResourceKeyParser explicitResourceKeyParser,
            IStringLocalizer stringLocalizer
            )
        {
            if (explicitResourceKeyParser == null)
                throw new ArgumentNullException("explicitResourceKeyParser");
            if (stringLocalizer == null)
                throw new ArgumentNullException("stringLocalizer");

            this.explicitResourceKeyParser = explicitResourceKeyParser;
            this.stringLocalizer = stringLocalizer;
        }
Example #2
0
        public LocalizationServiceFactory(
            IExplicitResourceKeyParser explicitResourceKeyParser,
            IStringLocalizer stringLocalizer
            )
        {
            if (explicitResourceKeyParser == null)
            {
                throw new ArgumentNullException("explicitResourceKeyParser");
            }
            if (stringLocalizer == null)
            {
                throw new ArgumentNullException("stringLocalizer");
            }

            this.explicitResourceKeyParser = explicitResourceKeyParser;
            this.stringLocalizer           = stringLocalizer;
        }