in App/src/Events-TenantUserApp/Startup.cs [211:241]
private void ReadAppConfig()
{
DatabaseConfig = new DatabaseConfig
{
DatabasePassword = Configuration["DatabasePassword"],
DatabaseUser = Configuration["DatabaseUser"],
DatabaseServerPort = Convert.ToInt32(Configuration["DatabaseServerPort"]),
SqlProtocol = SqlProtocol.Tcp,
ConnectionTimeOut = Convert.ToInt32(Configuration["ConnectionTimeOut"]),
LearnHowFooterUrl = Configuration["LearnHowFooterUrl"]
};
CatalogConfig = new CatalogConfig
{
ServicePlan = Configuration["ServicePlan"],
CatalogDatabase = Configuration["CatalogDatabase"],
CatalogServer = Configuration["CatalogServer"] + ".database.windows.net",
CatalogLocation = Configuration["APP_REGION"]
};
TenantServerConfig = new TenantServerConfig
{
TenantServer = Configuration["TenantServer"] + ".database.windows.net"
};
bool isResetEventDatesEnabled = false;
if (bool.TryParse(Configuration["ResetEventDates"], out isResetEventDatesEnabled))
{
TenantServerConfig.ResetEventDates = isResetEventDatesEnabled;
}
}