예제 #1
0
    public override Task Invoke(IIncomingPhysicalMessageContext context, Func <Task> next)
    {
        var auditFilterContext = new AuditFilterContext
        {
            SkipAudit = false
        };

        context.Extensions.Set(auditFilterContext);

        return(next());
    }
    public static void AddAuditContext(this IIncomingPhysicalMessageContext context)
    {
        var auditFilterContext = new AuditFilterContext();

        context.Extensions.Set(auditFilterContext);
    }
 public static bool TryGetAuditContext(
     this IAuditContext context,
     out AuditFilterContext auditFilterContext)
 {
     return(context.Extensions.TryGet(out auditFilterContext));
 }