I have the next problem We have a large client-server system and use of CSLA to operate with DB data Please. There is a set of WinForms-based clients and a WCF-based AppServer. We have a custom logging subsystem and the settings for this subsystem are stored in DB. Therefore, on the initialization of each side of our system (client application or application server) we have to configure logging subsystem with DB settings. This is easy to do in client applications. But how can we enter the CSLA WCF portal after the invoice of CSLA WCF portal?
So, how to optimize CSLA's initialization?
Thanks a lot!
Rockford Lodha answered this question on his forum
In CSLA 3.8 and higher there is a hook that exists on the server before anything else happens. It is designed to enable authorization on every single server call, but it can also be used to initialize server-side.
You need to implement Csla.Server.IAuthorizeDataPortal Add a config entry so that the data portal can know the name of the assembly type of your class that implements the interface.
Comments
Post a Comment