Example #1
0
        /// <summary>
        /// Convenience function for callers using locales.  This instantiates
        /// a <see cref="SimpleLocaleKeyFactory"/>, and registers the factory.
        /// </summary>
        public virtual IServiceFactory RegisterObject(object obj, UCultureInfo locale, int kind, bool visible)
        {
            IServiceFactory factory = new SimpleLocaleKeyFactory(obj, locale, kind, visible);

            return(RegisterFactory(factory));
        }
Example #2
0
        /// <summary>
        /// Convenience function for callers using locales.  This instantiates
        /// a <see cref="SimpleLocaleKeyFactory"/>, and registers the factory.
        /// </summary>
        public virtual IFactory RegisterObject(Object obj, ULocale locale, int kind, bool visible)
        {
            IFactory factory = new SimpleLocaleKeyFactory(obj, locale, kind, visible);

            return(RegisterFactory(factory));
        }