- .Net Core 2.2
For GDSHelpers add this link to list of NuGet package sources. For The GOV.UK Notify client add this link to list of NuGet package sources.
-
Visual Studio 2017 or Visual Studio Code
-
Azure Cosmos DB Emulator download from here.
Once you install and start the emulator please create databse, collection and populate it with data. You can find officual documentation (including limitations) for Cosmos DB emulator here.
Alternatively you can use Docker image of Azure Cosmos DB Emulator**.
** This is not tested by SYE development team yet.
- If you are in the middle of piece of work that requires access to existing Cosmos Db in cloud, please change "ASPNETCORE_ENVIRONMENT" in launchSettings.json from "Local" to "Development".
// Following is only required if capturing logs from Program and Startup to Application Insights.
// Otherwise you can just use loggingBuilder.AddApplicationInsights() without any arguments and iKey will be picked up from application settings
var iKey = builderContext?.Configuration?.GetSection("ApplicationInsights").GetValue<string>("InstrumentationKey");
if (!string.IsNullOrWhiteSpace(iKey))
{
loggingBuilder.AddApplicationInsights(iKey);
loggingBuilder.AddFilter<ApplicationInsightsLoggerProvider>(typeof(Program).FullName, LogLevel.Error);
loggingBuilder.AddFilter<ApplicationInsightsLoggerProvider>(typeof(Startup).FullName, LogLevel.Error);
}