Hi,
It looks like a problem with MAUI.
You can try this:
[ContentProperty(nameof(Text))]
public class TranslateExtension : IMarkupExtension<BindingBase>
{
public string Text { get; set; } = string.Empty;
public string? StringFormat { get; set; }
public BindingBase ProvideValue(IServiceProvider serviceProvider)
{
var l = ServiceLocator.Current.GetRequiredService<LocalizationResourceManager>();
var binding = new Binding
{
Mode = BindingMode.OneWay,
Path = $"[{Text}]",
Source = l,
StringFormat = StringFormat
};
return binding;
}
object IMarkupExtension.ProvideValue(IServiceProvider serviceProvider) => ProvideValue(serviceProvider);
}
public static class ServiceLocator
{
public static IServiceProvider Current =>
#if WINDOWS
MauiWinUIApplication.Current.Services;
#elif ANDROID
MauiApplication.Current.Services;
#elif IOS || MACCATALYST
MauiUIApplicationDelegate.Current.Services;
#else
null;
#endif
}
Hi,
You can check this:https://support.abp.io/QA/Questions/4474/Upload-file-Did-not-receive-any-data-in-the-allotted-time#answer-1d0acd0d-5594-41d3-02aa-3a092715ad2c
Hi,
You can try to custom the RebusDistributedEventBus.
For example:
[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(IDistributedEventBus), typeof(RebusDistributedEventBus))]
public class MyRebusDistributedEventBus : RebusDistributedEventBus
{
public MyRebusDistributedEventBus(IServiceScopeFactory serviceScopeFactory, ICurrentTenant currentTenant, IUnitOfWorkManager unitOfWorkManager, IBus rebus, IOptions<AbpDistributedEventBusOptions> abpDistributedEventBusOptions, IOptions<AbpRebusEventBusOptions> abpEventBusRebusOptions, IRebusSerializer serializer, IGuidGenerator guidGenerator, IClock clock, IEventHandlerInvoker eventHandlerInvoker) : base(serviceScopeFactory, currentTenant, unitOfWorkManager, rebus, abpDistributedEventBusOptions, abpEventBusRebusOptions, serializer, guidGenerator, clock, eventHandlerInvoker)
{
}
public async override Task TriggerHandlersAsync(Type eventType, object eventData)
{
var messageId = MessageContext.Current.TransportMessage.GetMessageId();
var sentTime = MessageContext.Current.Headers["rbs2-senttime"];
if (....)
{
return;
}
await base.TriggerHandlersAsync(eventType, eventData);
}
}
Hi,
What's your steps?
Hi,
The MauiBlazorCachedApplicationConfigurationClient will initialize when the application starts.
https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.AspNetCore.Components.MauiBlazor/Volo/Abp/AspNetCore/Components/MauiBlazor/AbpAspNetCoreComponentsMauiBlazorModule.cs#L41
I don't know the reason for the problem, How I reproduce the problem, could you provide the full steps? thanks.
I don't know the code details, can you use a new project to reproduce the problem and share it with me? I will check it shiwei.liang@volosoft.com
You can ovveride the PermissionAppService:
https://docs.abp.io/en/abp/latest/Customizing-Application-Modules-Overriding-Services#replacing-an-interface
public class MyPermissionAppService: PermissionAppService
{
..... CheckProviderPolicy(string providerName)
{
if(providerName == xxxx)
{
return;
}
await base.CheckProviderPolicy(providerName);
}
}
Could you share a project to reproduce? Thanks. shiwei.liang@volosoft.com