public async Task CheckAsync(MethodInvocationAuthorizationContext context)
        {
            if (AllowAnonymous(context))
            {
                return;
            }

            var authorizationPolicy = await AuthorizationPolicy.CombineAsync(
                _authorizationPolicyProvider,
                GetAuthorizationDataAttributes(context.Method)
                );

            if (authorizationPolicy == null)
            {
                return;
            }

            //await _abpAuthorizationService.CheckAsync(authorizationPolicy);
        }
 protected virtual bool AllowAnonymous(MethodInvocationAuthorizationContext context)
 {
     return(context.Method.GetCustomAttributes(true).OfType <IAllowAnonymous>().Any());
 }