Closed shayura closed 2 years ago
@sagilio @xcaptain @huazhikui
Please forgive me for the silly question. I have just found out about the extension methods inside NetCasbin/Extensions/Enforcer/EnforcerExtension.cs
. I'll try using this newfound knowledge to call the enforcer to check p2
rules.
I can't find any examples in the UnitTest projects, so I'm not sure how to migrate
Enforce(Async)
calls from the previous version. I would like to useEnforcerContext
to switch betweenp
andp2
rules.