Activities of "liangshiwei"

The other one works without any exceptions, and my admin role can be authorized to complete

I am not sure why this is caused, whether it is caused by the network or suite tools?

I think this is caused by the docker environment. You can try to clean up the docker container again.

Hi,

what's the error message now?

Answer

Answer

Hi,

Sorry, I must have forgotten, I will create an internal issue now.

Hi,

You can try this, i will fix it in the next patch version.

[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(IBackgroundWorkerManager), typeof(HangfireBackgroundWorkerManager))]
public class MyHangfireBackgroundWorkerManager: HangfireBackgroundWorkerManager
{
    public MyHangfireBackgroundWorkerManager(IServiceProvider serviceProvider) : base(serviceProvider)
    {
    }


    protected override string GetCron(int period)
    {
        var time = TimeSpan.FromMilliseconds(period);
        string cron;

        if (time.TotalSeconds <= 59)
        {
            cron = $"*/{time.TotalSeconds} * * * * *";
        }
        else if (time.TotalMinutes <= 59)
        {
            cron = $"*/{time.TotalMinutes} * * * *";
        }
        else if (time.TotalHours <= 23)
        {
            cron = $"0 */{time.TotalHours} * * *";
        }
        else if(time.TotalDays >= 1)
        {
            cron = $"0 0 0 1/{time.TotalDays} * *";
        }
        else
        {
            throw new AbpException(
                $"Cannot convert period: {period} to cron expression, use HangfireBackgroundWorkerBase to define worker");
        }

        return cron;
    }
}

i will check it

Hi,

Please try use the latest IdentityModel packages in the HttpApi.Host project.

<PackageReference Include="Microsoft.IdentityModel.Protocols.OpenIdConnect" Version="7.5.1" />
<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="7.5.1" />
<PackageReference Include="Microsoft.IdentityModel.JsonWebTokens" Version="7.5.1" />

See https://github.com/abpframework/abp/issues/20145

Answer

You can try to override the MainMenuItem component

[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(MainMenuItem))]
public  class MyMainMenuItem : MainMenuItem
{
    protected override void ActivateCurrentPage()
    {
        if (MenuItem.MenuItem.Url.IsNullOrEmpty())
        {
            return;
        }

        if (PageLayout.MenuItemName.IsNullOrEmpty())
        {
            var menuItemPath = MenuItem.MenuItem.Url.Replace("~/", string.Empty).Trim('/');
            var currentPagePath = new Uri(NavigationManager.Uri.TrimEnd('/')).AbsolutePath.Trim('/');

            if (menuItemPath.TrimEnd('/').Equals(currentPagePath, StringComparison.InvariantCultureIgnoreCase))
            {
                Menu.Activate(MenuItem);
            }
        }

        if (PageLayout.MenuItemName == MenuItem.MenuItem.Name)
        {
            Menu.Activate(MenuItem);
        }
        else
        {
            MenuItem.Deactivate();
        }
    }
}
Answer

I can no longer select this menu item to return to the list (menu items that have already been selected cannot be selected a second time). I'm not talking about the breadcrumbs, but the normal menu. Or how did you mean exactly how I should do it?

Yes, I know. I just mentioned the possibility of returning to the upper menu from the breadcrumbs. And

On the one hand, I use Blazor and not MVC.

Sorry, https://docs.abp.io/en/abp/latest/UI/Blazor/Page-Header#breadcrumb

Hi,

I will fixed it in the next patch version You can try this:

[ExposeServices(typeof(MessagesToolbarItem))]
public class BlazorMessagesToolbarItem : MessagesToolbarItem
{
    [Inject]
    protected IAbpAccessTokenProvider AccessTokenProvider { get; set; }

    [Inject]
    protected IOptions<ChatBlazorWebAssemblyOptions> ChatBlazorWebAssemblyOptions { get; set; }
    
    [Inject]
    protected IOptions<AbpRemoteServiceOptions> AbpRemoteServiceOptions { get; set; }

    protected async override Task SetChatHubConnectionAsync()
    {
        var token = await AccessTokenProvider.GetTokenAsync();

        var signalrUrl = ChatBlazorWebAssemblyOptions.Value.SignalrUrl ?? AbpRemoteServiceOptions.Value.RemoteServices.Default.BaseUrl;
        
        HubConnection = new HubConnectionBuilder()
            .WithUrl(signalrUrl.EnsureEndsWith('/') + "signalr-hubs/chat", options =>
            {
                if(!token.IsNullOrWhiteSpace())
                {
                    options.AccessTokenProvider = () => Task.FromResult(token);
                }
                
            })
            .Build();
    }
}
Showing 1711 to 1720 of 6693 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.