hi
Yes.
https://docs.abp.io/en/commercial/latest/startup-templates/microservice/interservice-communication
hi
You can consider the ETO, which is defined on the Domain.Shared module.
https://docs.abp.io/en/abp/latest/Distributed-Event-Bus#event-transfer-object
Or the Integration Services.
https://docs.abp.io/en/abp/latest/Integration-Services
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;
}
}