in DotNETCore-Agent/Controllers/ProductsController.cs [19:35]
static ProductsController()
{
LazyDdbClient = new Lazy<AmazonDynamoDBClient>(() =>
{
var client = new AmazonDynamoDBClient(RegionEndpoint.USEast1); // When running locally, configure with desired region and comment above line of client creation.
return client;
});
LazyTable = new Lazy<Table>(() =>
{
var tableName = "SampleProduct";
return Table.LoadTable(LazyDdbClient.Value, tableName);
});
}