コード例 #1
0
        internal I18nText(IServiceProvider serviceProvider)
        {
            this.I18nTextRepository = serviceProvider.GetService <I18nTextRepository>();

            this.ServiceProvider = serviceProvider;
            this.JSRuntime       = serviceProvider.GetService <IJSRuntime>();
            this.Options.GetInitialLanguageAsync     = GetInitialLanguageAsync;
            this.Options.PersistCurrentLanguageAsync = PersistCurrentLanguageAsync;
        }
コード例 #2
0
 internal I18nText(IServiceProvider serviceProvider, I18nTextOptions options)
 {
     this.ServiceProvider    = serviceProvider;
     this.I18nTextRepository = serviceProvider.GetRequiredService <I18nTextRepository>();
     this.Options            = options;
 }