public static string Text(string key)
        {
            var settings = new IntelligentMediaSettings(null, null);
            var db       = Sitecore.Configuration.Factory.GetDatabase(settings.MasterDatabase);

            using (new DatabaseSwitcher(db))
            {
                return(Translate.TextByDomain(settings.DictionaryDomain, key) ?? string.Empty);
            }
        }
예제 #2
0
 public AzureVisionApi(IntelligentMediaSettings settings)
 {
     _subscriptionKey = settings.AzureSubscriptionKey;
     _region          = settings.AzureRegion;
 }
 public GoogleVisionApi(IntelligentMediaSettings settings)
 {
     _apiKey = settings.GoogleApiKey;
 }
예제 #4
0
 public void Settings([FromBody] IntelligentMediaSettings settings)
 {
     _intelligentMediaService.Settings().Update(settings);
 }