IAuthorizeReadWrite, CSLA 4

IAuthorizeReadWrite, CSLA 4

Old forum URL: forums.lhotka.net/forums/t/8942.aspx


dmnc posted on Monday, May 17, 2010

Hello,

CanReadProperty/CanWriteProperty/CanExecuteMethod now accept a parameter of type IPropertyInfo.

Would it make sense to extend the IAuthorizeReadWrite interface by providing these method overloads?

Thank you!

RockfordLhotka replied on Monday, May 17, 2010

I thought about that, and maybe they could be overloads. But the primary consumer of IAuthorizeReadWrite is the UI, and in most cases the UI will be using the string property name because that's how data binding works.

However, I can see where you might create a custom UI framework that was aware of IPropertyInfo fields and would use them, so this is probably a good suggestion, thanks!

Copyright (c) Marimer LLC