abelfiore

Results 9 comments of abelfiore

Not ideal, but that is an option. Is there some way for me to do this in one place, rather than repeating this logic everywhere?

Sounds great. Would love to see a TransactionId baked in for all requests. Really enjoying your library so far. Great job!

Yes, I saw that, but was wondering if AutoWrapper could support a way to do this without explicitly doing anything in the controller endpoints. In other words, detect the api...

No I passed in an instance of the adapter. Hmmm... which preview are you using?

https://github.com/casbin/Casbin.NET/releases/tag/v2.0.0-preview.4

FileAdapter worked for me too. Here is what my TestAdapter looks like. It doesn't matter what is inside of the two methods (I'm using extension methods if you were curious)...

If I change my TestAdapter to implement IEpochAdapter instead, it works! Strange, eh?

Also worth noting maybe this class needs to change? Maybe LoadPolicy and LoadPolicyAsync should use an IReadOnlyAdapter instead? ``` public static class AdapterExtension { public static void LoadPolicy(this IEpochAdapter adapter,...

Sounds like (a) I'm not crazy, and (b) we might need a new preview branch soon? :) Also, any idea when 2.x gets officially released? Enquiring minds want to know...