in src/SqlBindingUtilities.cs [57:70]
public static string GetWebSiteName(IConfiguration configuration)
{
if (configuration == null)
{
throw new ArgumentNullException(nameof(configuration));
}
string websitename = configuration.GetConnectionStringOrSetting(SqlBindingConstants.WEBSITENAME);
// We require a WEBSITE_SITE_NAME for avoiding duplicates if users use the same function name accross apps.
if (string.IsNullOrEmpty(websitename))
{
throw new ArgumentException($"WEBSITE_SITE_NAME cannot be null or empty in your function app settings, please update the setting with a string value. Please refer to https://github.com/Azure/azure-functions-sql-extension/blob/main/docs/BindingsOverview.md#website_site_name for more information.");
}
return websitename;
}