OK. should I delete these fixes once I upgrade to 10.7? I have already implemented
Add this to the ConfigureServices method of your *WebModule:
context.Services.ConfigureApplicationCookie(options => { var previousOnSigningOut = options.Events.OnSigningOut; options.Events.OnSigningOut = async signingOutContext => { if (signingOutContext.HttpContext.Request.Path.StartsWithSegments("/Account/LinkLogin")) { return; }
await previousOnSigningOut(signingOutContext);
};
}); This brings the switch flow back to the 10.4 behavior, where the previous session is kept instead of being revoked. We're tracking the AbpDbConcurrencyException separately.
For the Hangfire error on 10.6: RecurringJob.RemoveIfExists("HangfirePeriodicBackgroundWorkerAdapter<BackgroundJobWorker>.DoWorkAsync") is the correct cleanup for the stale recurring job persisted by the earlier versions.
hi, how do I know if the fixes for these are released? should I just wait for 10.7? thanks
I found there are 4 ABP-owned workers: TokenCleanupBackgroundWorker IdentitySessionCleanupBackgroundWorker ExcelFileCleanupWorker ExpiredAuditLogDeleterWorker
I want to change all of them run nightly to make the system more stable.
thanks
but how can I use it here, or can you give me the full file? can't find the namespaces
*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.*
[maliming] said: hi
Please inherit the
LeptonXStyleProviderbase class.Thanks.
hi, is there a doc for this LeptonXStyleProvider? I couldn't find one and I found this support ticket https://abp.io/support/questions/5295/Tenant-specific-themes
is there a doc for this LeptonXStyleProvider? I couldn't find one and I found this support ticket https://abp.io/support/questions/5295/Tenant-specific-themes
how to implement other functions?
namespace Tapp.Web;
public class TappLeptonXStyleProvider : ILeptonXStyleProvider { public Task<string> GetSelectedStyleAsync() { return Task.FromResult(LeptonXStyleNames.Light); }
public Task<LeptonXSideMenuState> GetSideMenuStateAsync()
{
return Task.FromResult(LeptonXSideMenuState.Expanded);
}
public Task<bool> GetSideMenuStateAsync()
{
throw new System.NotImplementedException();
}
}
are you sure? I got this Cannot resolve symbol 'LeptonXThemeUiOptions'
hi, it worked serverBuilder.AddProductionEncryptionAndSigningCertificate("openiddict.pfx", "your_password"); however, I have to put the pfx in the server folder directly, which is not the best practice, any better way to manage the pfx file? thanks
I got a question, currently the site is working fine, it's multi-tenacy site. if this line of code is not working, why the auth, login, sign up pages are still working? thanks
using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
This line of code has a problem.
The Azure hosting environment does not allow your application to access the CurrentUser certificate store by default.