Esempio n. 1
0
 public HomeController(IConfiguration configuration)
 {
     _configuration       = configuration;
     _docSearch           = new DocumentSearchClient(configuration);
     _idField             = _configuration.GetSection("KeyField")?.Value;
     _isPathBase64Encoded = (_configuration.GetSection("IsPathBase64Encoded")?.Value == "True");
 }
 private void InitializeDocSearch()
 {
     try
     {
         _docSearch = new DocumentSearchClient(_configuration);
     }
     catch (Exception e)
     {
         _configurationError = $"The application settings are possibly incorrect. The server responded with this message: " + e.Message.ToString();
     }
 }
Esempio n. 3
0
 private void InitializeDocSearch()
 {
     try
     {
         _docSearch           = new DocumentSearchClient(_configuration);
         _timeReferenceSearch = _configuration.GetSection("SearchIndexNameVideoIndexerTimeRef")?.Value != "" ? new DocumentSearchClient(_configuration, true) : null;
     }
     catch (Exception e)
     {
         _configurationError = $"The application settings are possibly incorrect. The server responded with this message: " + e.Message.ToString();
     }
 }
 public HomeController(IConfiguration configuration)
 {
     _configuration = configuration;
     _docSearch     = new DocumentSearchClient(configuration);
 }