in JfkWebApiSkills/JfkInitializer/Program.cs [43:73]
static void Main(string[] args)
{
DataSourceName = ConfigurationManager.AppSettings["DataSourceName"];
IndexName = ConfigurationManager.AppSettings["IndexName"];
SkillsetName = ConfigurationManager.AppSettings["SkillsetName"];
IndexerName = ConfigurationManager.AppSettings["IndexerName"];
SynonymMapName = ConfigurationManager.AppSettings["SynonymMapName"];
BlobContainerNameForImageStore = ConfigurationManager.AppSettings["BlobContainerNameForImageStore"];
Uri searchServiceEndpoint = new Uri(string.Format("https://{0}.{1}", ConfigurationManager.AppSettings["SearchServiceName"], ConfigurationManager.AppSettings["SearchServiceDnsSuffix"]));
string apiKey = ConfigurationManager.AppSettings["SearchServiceApiKey"];
_searchIndexClient = new SearchIndexClient(searchServiceEndpoint, new AzureKeyCredential(apiKey));
_searchIndexerClient = new SearchIndexerClient(searchServiceEndpoint, new AzureKeyCredential(apiKey));
bool result = RunAsync().GetAwaiter().GetResult();
if (!result && !DebugMode)
{
Console.WriteLine("Something went wrong. Set 'DebugMode' to true in order to see traces.");
}
else if (!result)
{
Console.WriteLine("Something went wrong.");
}
else
{
Console.WriteLine("All operations were successful.");
}
Console.WriteLine("Press any key to exit.");
Console.ReadKey();
}