hi
You can clear Styles
from LeptonXThemeOptions
, and add a light style.
Configure<LeptonXThemeOptions>(options =>
{
options.Styles.Clear();
options.Styles[LeptonXStyleNames.Light] = new LeptonXThemeStyle(L("Theme:" + LeptonXStyleNames.Light), "bi bi-sun-fill");
});
private static LocalizableString L(string key)
{
return LocalizableString.Create<LeptonXResource>(key);
}
hi
I use local.test
as a domain and you need to change it below:
test.local.test
test is the tenant name.
public class CookieHandler : DelegatingHandler, ITransientDependency
{
protected override Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
{
request.SetBrowserRequestCredentials(BrowserRequestCredentials.Include);
return base.SendAsync(request, cancellationToken);
}
}
hi
AddVirtualJson("/Localization/Test")
See https://abp.io/community/articles/understanding-the-embedded-files-in-abp-framework-nsrp8aa9#gsc.tab=0
hi
Configure<AbpVirtualFileSystemOptions>(options =>
{
// "YourRootNameSpace" is the root namespace of your project. It can be empty if your root namespace is empty.
options.FileSets.AddEmbedded<AbpLocalizationSingleLayerModule>();
});
Configure<AbpLocalizationOptions>(options =>
{
//Define a new localization resource (TestResource)
options.Resources
.Add<TestResource>("en")
.AddVirtualJson("/Localization/Test")
.AddBaseTypes(typeof(AccountResource));
options.DefaultResourceType = typeof(TestResource);
});
<PackageReference Include="Microsoft.Extensions.FileProviders.Embedded" Version="9.0.0" />
hi
Can you test your code in a new app
template project?
then you can share the app
project code.
liming.ma@volosoft.com
Thanks.
使用 requiresNew: true
确保创建一个新的工作单元.
注意: 一个DbContext
是不支持多线程的