Re: RunLocal vs. custom data portal proxy

Re: RunLocal vs. custom data portal proxy

Old forum URL:

decius posted on Friday, November 12, 2010

 know this post is really old, but I've run into the same requirement: switching remote vs local at runtime.

It seems to me that the above code would cause threading issues with the UseLocalDataPortal field being static. Plus, Isn't the proxy cached for performance? How bad of a performance cost would ctoring a new proxy for each dataportal request cause?

I thought about creating my own RunRemote attribute, but it would seem silly to duplicate the caching efforts of the DataPortalMethodInfo cache that csla does for me, and I don't want to mess with customizing the framework for sure...

Besides all that, is there a newer, better way than to just create a custom proxy like this?

Copyright (c) Marimer LLC