I am wrapping calls to an API and most of my methods have in their first lines:
if ( !Gree.Authorizer.IsAuthorized() )
{
return;
}
In python I would decorate those methods with something like @login_required
.
What would you use to refactor that type of logic in c#
?