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是不支持多线程的
ok, you can clear the data from the AbpLanguages table.
Then, remove languages from all projects.
PostConfigure<AbpLocalizationOptions>(options =>
{
options.Languages.Remove..
});
hi
Try to remove the languages from AbpLocalizationOptions
PostConfigure<AbpLocalizationOptions>(options =>
{
options.Languages.Remove..
});
hi
Try to add UnitOfWork attribute to DoWorkAsync method or begin a new UOW
[UnitOfWork]
protected override async Task DoWorkAsync(PeriodicBackgroundWorkerContext workerContext)
{
}
protected override async Task DoWorkAsync(PeriodicBackgroundWorkerContext workerContext)
{
try
{
using (var uow = _unitOfWorkManager.Begin(requiresNew: true))
{
await uow.CompleteAsync();
}
}
}
hi
I removed your Dropbox download link. I will check your app.
Thanks.