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); } }
public AzureVisionApi(IntelligentMediaSettings settings) { _subscriptionKey = settings.AzureSubscriptionKey; _region = settings.AzureRegion; }
public GoogleVisionApi(IntelligentMediaSettings settings) { _apiKey = settings.GoogleApiKey; }
public void Settings([FromBody] IntelligentMediaSettings settings) { _intelligentMediaService.Settings().Update(settings); }