Open
Description
代码如下:
` public async override Task Invoke(AspectContext context, AspectDelegate next)
{
try
{
Console.WriteLine("Before service call");
context.AdditionalData.Add("CustomData", "CustomValue");
await next(context);
}
catch (Exception)
{
Console.WriteLine("Service threw an exception!");
throw;
}
finally
{
Console.WriteLine("After service call");
}
}` 如何在被拦截方法中获取到AspectContext 对象内的AdditionalData字典数据呢?
Metadata
Metadata
Assignees
Labels
No labels