Quantcast
Channel: CSLA .NET
Viewing all articles
Browse latest Browse all 764

AuthorizationActions.ExecuteMethod

$
0
0

Hi

Can anyone explain me why in BussinessRules class there is no overload static HasPermission method that accept  Csla.Core.IMemberInfo parameter?

Whenever I want to check permission for a shared(static) method , I am forcing to create an instance of that class and then test the permission.

like this 

Dim item = MyBussinessClass.NewNyBusiness()

item.CanExecuteMethod(MyMethodInfo, False)

I like to do like this

Csla.BussinessRules.HassPermission(Gettype(MyBussinessClass),AuthorizationActions.ExecuteMethod,MyMethosInfo)

Thanks and Regards

 


Viewing all articles
Browse latest Browse all 764

Trending Articles