Exemplo n.º 1
0
 public string GetFilterTypeName()
 {
     if (ApiFilter != null)
     {
         return(ApiFilter.GetType().FullName);
     }
     return(ApiFilterAsync.GetType().FullName);
 }
Exemplo n.º 2
0
 public async Task <ApiFilterRunResult> ShouldContinueAsync(HttpContext httpCtx)
 {
     if (ApiFilterAsync != null)
     {
         return(await ApiFilterAsync.ShouldContinueAsync(httpCtx));
     }
     return(ApiFilter.ShouldContinue(httpCtx));
 }