await AtataContext.Current.Log.ExecuteSectionAsync(
new LogSection("Do some async work without result"),
async () =>
{
//...
});
var result = await AtataContext.Current.Log.ExecuteSectionAsync(
new LogSection("Do some async work with result"),
async () =>
{
return await SomeActionAsync();
});
In addition to
ExecuteSection
methods ofILogManager
new async method versions are added:Usage