Activities of "maliming"

hi

Please test below code.

        context.Services.AddSignalR(options =>
        {
            options.AddFilter<AbpMultiTenantHubFilter>();
        }).AddAzureSignalR();

using System;
using System.Security.Principal;
using System.Threading.Tasks;
using Microsoft.AspNetCore.SignalR;
using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.MultiTenancy;
using Volo.Abp.Security.Claims;

namespace FM.Test.Blazor;

public class AbpMultiTenantHubFilter : IHubFilter
{
    public virtual async ValueTask<object> InvokeMethodAsync(HubInvocationContext invocationContext, Func<HubInvocationContext, ValueTask<object>> next)
    {
        var currentPrincipalAccessor = invocationContext.ServiceProvider.GetRequiredService<ICurrentPrincipalAccessor>();
        using (currentPrincipalAccessor.Change(invocationContext.Context.User))
        {
            using (invocationContext.ServiceProvider.GetRequiredService<ICurrentTenant>().Change(currentPrincipalAccessor.Principal.FindTenantId()))
            {
                return await next(invocationContext);
            }
        }
    }

    public virtual Task OnConnectedAsync(HubLifetimeContext context, Func<HubLifetimeContext, Task> next)
    {
        return Task.CompletedTask;
    }

    public virtual Task OnDisconnectedAsync(HubLifetimeContext context, Exception exception, Func<HubLifetimeContext, Exception, Task> next)
    {
        return Task.CompletedTask;
    }
}

hi

I suggest you use EF's way of implementing it instead of Object Extensions. It's not designed for this.

The suite may not support some special cases. You have to do it manually.

hi

What's your external Oauth (OpenId ) provider ?

Generally you need to override the OnGetExternalLoginCallbackAsync of LoginModel

hi

There seems the ChatConversations table has some wrong records.

How can I reproduce this? Is there any steps?

hi

Can I reproduce this in a new template project?

You can also try to clear the Reids.

I switched to True in database and tried to refresh the cache but that did not fix the issue.

hi

Please share the settings table records.

liming.ma@volosoft.com

Thanks, I will check it.

hi

Is the TenantId have a value?

Or specify the Nameof TenantId.

[BindProperty(Name = "__tenant", SupportsGet = true)]
public Guid? TenantId { get; set; }

You can do not to switch the tenant, the middleware will automatically resolve and switch the tenant by default

hi

I can sign in.

But I continue to get errors.

An error has occurred. This application may no longer respond until reloaded. Reload

Can you share the logs?

https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.components.server.circuitoptions.detailederrors?view=aspnetcore-7.0

services.AddServerSideBlazor().AddCircuitOptions(e=> {
        e.DetailedErrors = true;
    });

👍

Showing 7141 to 7150 of 11542 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.1.0-preview. Updated on December 17, 2025, 07:08
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.