hi
I have created the example. But I was unable to reproduce the problem which exists in our application:
Since I couldn't check the code, I couldn't tell the cause of the problem. Sorry for that.
hi
You can check the source code of https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.BackgroundJobs.HangFire/Volo/Abp/BackgroundJobs/Hangfire/HangfireBackgroundJobManager.cs#L12
I guess the BackgroundJob API can get the job id.
hi
Replace AbpExceptionFilter and AbpExceptionPageFilter with yours
context.Services.Configure<MvcOptions>(options =>
{
options.Filters.ReplaceOne(
f => f is ServiceFilterAttribute fa && fa.ServiceType == typeof(AbpExceptionFilter),
new ServiceFilterAttribute(typeof(YourAbpExceptionFilter))
);
options.Filters.ReplaceOne(
f => f is ServiceFilterAttribute fa && fa.ServiceType == typeof(AbpExceptionPageFilter),
new ServiceFilterAttribute(typeof(YourAbpExceptionPageFilter))
);
});
https://github.com/abpframework/abp/blob/rel-8.0/framework/src/Volo.Abp.AspNetCore.Mvc/Volo/Abp/AspNetCore/Mvc/ExceptionHandling/AbpExceptionFilter.cs#L83
https://github.com/abpframework/abp/blob/rel-8.0/framework/src/Volo.Abp.AspNetCore.Mvc/Volo/Abp/AspNetCore/Mvc/ExceptionHandling/AbpExceptionPageFilter.cs#L68
hi
. Is it possible to override clientproxybase so i don't need to do the same for every service that i am injecting.
Not currently possible.
You can consider:
context.Services.Replace(ServiceDescriptor.Transient<ISampleAppService>(serviceProvider =>
{
var sampleClientProxy = serviceProvider.GetRequiredService<SampleClientProxy>();
sampleClientProxy.LazyServiceProvider = serviceProvider.GetRequiredService<IAbpLazyServiceProvider>();
return sampleClientProxy;
}));
hi
If you can't find a way, you can use rabbitmq, and I will create a rabbmtmq in docker.
hi
I don't have IOS environment.
But you can remove Autofac. The problem is about the Properity injection.
So set base service manually.
using System;
using BookStore.Category.Samples;
using Volo.Abp.DependencyInjection;
namespace BookStore.Avalonia.ViewModels;
public class MainViewModel : ViewModelBase,ISingletonDependency
{
#pragma warning disable CA1822 // Mark members as static
public string Greeting => "Welcome to Avalonia!";
#pragma warning restore CA1822 // Mark members as static
public MainViewModel()
{
var sampleAppService = AbpBootstrapper.GetRequiredService<ISampleAppService>();
sampleAppService.As<SampleClientProxy>().LazyServiceProvider = AbpBootstrapper.GetRequiredService<IAbpLazyServiceProvider>();
var sampleDto = sampleAppService.GetAsync().Result;
}
}
You can use the simplest method, as long as the problem can be reproduced. It should have nothing to do with rabbitmq
hi
We fixed this in 8.0
See: https://support.abp.io/QA/Questions/6386#answer-3a0f9d72-bce0-0147-29a4-53f95472d021 https://github.com/abpframework/abp/issues/18545
Your ticket has been refunded.
hi
event is received from another running app.
Memory cache cannot cross app. That is, process A cannot read and write the memory cache in process B.