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