Csla 6 Custom HttpProxy #2656
Replies: 2 comments 2 replies
-
In CSLA 6 the way to use the default HttpProxy is like this: services.AddCsla(o=>o
.DataPortal()
.UseHttpProxy(options => options.DataPortalUrl = "/api/DataPortal")); For a custom proxy type, prior to calling services.AddTransient(typeof(IDataPortalProxy), typeof(MyCustomProxy));
services.AddCsla(); |
Beta Was this translation helpful? Give feedback.
-
I have a question on this. In CSLA 5, we had the 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.
Uh oh!
There was an error while loading. Please reload this page.
-
In Csla 5 this works:
CslaConfiguration.Configure().DataPortal().DefaultProxy(typeof(SmartHttpProxy), "Local");
How would configure a custom HttpProxy in Csla 6?
Beta Was this translation helpful? Give feedback.
All reactions