Uno -WASM => How to use app service in Uno Client wasm Am I missing any thing ?=> Resolved #2235
Unanswered
NuEdgeInfoTech
asked this question in
Questions
Replies: 1 comment 1 reply
-
_principal =new ClaimsPrincipal(new ClaimsIdentity()); after assign this csla api call started working in UNO WASM public class ApplicationContextManager : Core.ApplicationContextManager
{
private IPrincipal _principal;
public override IPrincipal GetUser()
{
if (_principal == null)
{
_principal = new ClaimsPrincipal(new ClaimsIdentity()); // after used this
SetUser(_principal);
}
return _principal;
}
public override void SetUser(IPrincipal principal)
{
_principal = principal;
}
} |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
#if WASM
Csla.DataPortalClient.HttpProxy.UseTextSerialization = true;
Csla.Configuration.CslaConfiguration.Configure().
DataPortal().DefaultProxy(typeof(Csla.DataPortalClient.HttpProxy), @"https://" + "xyz.net" + @"/" + @"api/DataPortalText/");
#else
Csla.Configuration.CslaConfiguration.Configure().
DataPortal().DefaultProxy(typeof(Csla.DataPortalClient.HttpProxy), @"https://" + "xyz.net" + @"/" + @"api/DataPortal/");
#endif
var services = new ServiceCollection();
services.AddCsla();
Csla.ApplicationContext.User = new ClaimsPrincipal(new ClaimsIdentity());
Beta Was this translation helpful? Give feedback.
All reactions