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.
hi
System.ArgumentException: "Integrated Security' is an invalid connection string attribute.'
You should check your connection string.
hi
I think you can reproduce the above problems in a new startup project in a few minutes.
Can you do that? In this way, I can confirm the problem immediately.
hi
We will check this. Your question credits have been refunded.