hi
Normally, the IGuidGenerator service will always be resolved.
Does your application not resolve it?
Thanks
hi
Can you share a demo project?
liming.ma@volosoft.com
Thanks.
hi
[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(ILeptonXStyleProvider))]
public class MyLeptonXStyleProvider : LeptonXStyleProvider
{
public MyLeptonXStyleProvider(IHttpContextAccessor httpContextAccessor, IOptions<LeptonXThemeOptions> leptonXThemeOption)
: base(httpContextAccessor, leptonXThemeOption)
{
}
public override Task<string> GetSelectedStyleAsync()
{
return Task.FromResult(LeptonXStyleNames.Light);
}
}
hi
It is a built-in service. Will get the current dark/light from the request cookies. Usually, you don't need to change it.
Thanks.
hi
Please inherit the LeptonXStyleProvider base class.
Thanks.
hi
You can try to override the GetSelectedStyleAsync method of ILeptonXStyleProvider service always to return LeptonXStyleNames.Light?
public override Task<string> GetSelectedStyleAsync()
{
return Task.FromResult(LeptonXStyleNames.Light);
}
Thanks.
hi
Please send an email to liming.ma@volosoft.com
I will check it remotely by Zoom.
Thanks.
hi
I am developing a Blazor Web App
Blazor WebApp has two modes.
Blazor Server and Blazor WASM. Have you overridden the Side Layout in both Blazor Server and WASM?
Thanks.
hi
I also have generated the har file while doing the logout, how do I share it with you? (It's 16 MB)
liming.ma@volosoft.com
If Microsoft has a signout endpoint, you can add a <iframe class="d-none" src="@ms_signout_Uri"></iframe> to Logout.cshtml to sign out of it.
Thanks.