Activities of "liangshiwei"

Hi,

can you tell me if i have AsyncBackgroundWorkers, Is abp use HangfirePeriodicBackgroundWorkerAdapter to execute them?

Yes, it will. See https://abp.io/docs/latest/framework/infrastructure/background-workers/hangfire

The AbpBackgroundJobsModule implemented BackgroundJobWorker.

in my httpapi.host project. This fixed the problem however i didn't understand which module is implementing the DefaultBgJob implementation. Can you give me a hint about it probably it is efcoremodule since it should be the infra project. And why AbpBackgroundJobsHangfireModule didn't override it i didn't understand. But now it works in this order.

They are different implementations. After installing the Hangfire provider, you need to remove other implementations.

The second thing i want to ask is about HangfirePeriodicBackgroundWorkerAdapter<BackgroundJobWorker>.DoWorkAsync why is this work triggered every 5 secs? I believe that's the default value. How can that value be changed? Also is this worker are dispatching BackgroundJobs? What is the purpose of this worker can you elaborate? Is it possible to disable it and delete it?

Please remove AbpBackgroundJobsModule and delete the job in the hangfire dashboard.

I believe it still uses default fifo implementation cause i can see that it hits background job. But sometimes it hangs and never fire the background job, could be because of the distributed lock i suppose. What am i missing over here. Can you point me to the right direction?

Can you provide the full steps or a simple project to reproduce the problem? I will check it.

Hi,

so when i run the project everythings works fine. But the weird part is i don't see any background jobs enqueued in my hangfire dashboard with parameters.

Try using the UseAbpHangfireDashboard method and BackgroundJobNameAttribute to define job names.

[BackgroundJobName("MyJobName")]
public class EmailSendingJob
    : AsyncBackgroundJob<EmailSendingArgs>, ITransientDependency
{
    private readonly IEmailSender _emailSender;

    public EmailSendingJob(IEmailSender emailSender)
    {
        _emailSender = emailSender;
    }

    public override async Task ExecuteAsync(EmailSendingArgs args)
    {
        await _emailSender.SendAsync(
            args.EmailAddress,
            args.Subject,
            args.Body
        );
    }
}

You can check this https://codejack.com/2022/12/deploying-abp-io-to-an-azure-appservice/

HI,

I can't reproduce the problem.

My steps:

  • Create a new project with Blazor server UI
  • Install Volo.Abp.MailKit to the Domain project and add typeof(AbpMailKitModule)
  • Remove context.Services.Replace(ServiceDescriptor.Singleton<IEmailSender, NullEmailSender>());
  • Add the correct email settings
  • Forget password

Hi,

Install Mailkit in the Domain module (Since we get a warning if we try to send a test email without it)

Did you receive the test email?

Hi,

You can just create a project with angular UI, and delete the modules from the package.json and code.

Hi,

Add to your configuration for social login method。

context.Services.AddAuthentication()
    .AddMicrosoftAccount(MicrosoftAccountDefaults.AuthenticationScheme, options =>
    {
        options.AuthorizationEndpoint = "https://login.microsoftonline.com/guid/oauth2/v2.0/authorize";
        options.TokenEndpoint = "https://login.microsoftonline.com/guid/oauth2/v2.0/token";

        options.ClaimActions.MapCustomJson("picture", _ => "https://graph.microsoft.com/v1.0/me/photo/$value");
        options.SaveTokens = true;

        options.ClientId = configuration["Authentication:Microsoft:ClientId"];
        options.ClientSecret = configuration["Authentication:Microsoft:ClientSecret"];
        
        var previousOnRedirectToAuthorizationEndpoint = options.Events.OnRedirectToAuthorizationEndpoint;
        options.Events.OnRedirectToAuthorizationEndpoint = async ctx =>
        {
            you can change the RedirectUri here
            ctx.RedirectUri = ....;
        
            if (previousOnRedirectToAuthorizationEndpoint != null)
            {
                await previousOnRedirectToAuthorizationEndpoint(ctx);
            }
        };
    })

yes, the same

please share the project with me. thanks. shiwei.liang@volosoft.com

Showing 121 to 130 of 6692 entries
Learn More, Pay Less
33% OFF
All Trainings!
Get Your Deal
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on September 10, 2025, 06:30