How to replace the DataPortalProxy at an arbitrary time in the app lifecycle #3478
Unanswered
GreatBarrier86
asked this question in
Questions
Replies: 1 comment 3 replies
-
I'm extraordinarily new to using Dependency Injection so i wasn't coming at this from the right angle. It occurs to me that while you can't replace services after you're registered them, there's nothing stopping me from using the Func<> parameter of each of the Would this be reasonable to you, @rockfordlhotka? `
` |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a question on this. In CSLA 5, we had the
Csla.ApplicationContext.DataPortalProxy
andCsla.ApplicationContext.DataPortalUrlString
static properties that allowed changing the values at runtime (eg: switching from local to remote at an arbitrary time).In principle, it doesn't appear that Dependency Injection supports that concept. Would you say changing the proxy/url is simply not a thing we could do anymore?
Beta Was this translation helpful? Give feedback.
All reactions