Browse Source

Update default background job worker options configuration in docs

Fix #25291
pull/25292/head
maliming 5 months ago
parent
commit
97333519d7
No known key found for this signature in database GPG Key ID: A646B9CB645ECEA4
  1. 4
      docs/en/framework/infrastructure/background-jobs/index.md
  2. 4
      docs/en/framework/infrastructure/background-workers/index.md

4
docs/en/framework/infrastructure/background-jobs/index.md

@ -271,9 +271,9 @@ If multiple applications share the same storage for background jobs and workers
Set `ApplicationName` property in `AbpBackgroundJobWorkerOptions` to your application's name:
````csharp
public override void PreConfigureServices(ServiceConfigurationContext context)
public override void ConfigureServices(ServiceConfigurationContext context)
{
PreConfigure<AbpBackgroundJobWorkerOptions>(options =>
Configure<AbpBackgroundJobWorkerOptions>(options =>
{
options.ApplicationName = context.Services.GetApplicationName()!;
});

4
docs/en/framework/infrastructure/background-workers/index.md

@ -152,9 +152,9 @@ If multiple applications share the same storage for background jobs and workers
Set `ApplicationName` property in `AbpBackgroundJobWorkerOptions` to your application's name:
````csharp
public override void PreConfigureServices(ServiceConfigurationContext context)
public override void ConfigureServices(ServiceConfigurationContext context)
{
PreConfigure<AbpBackgroundJobWorkerOptions>(options =>
Configure<AbpBackgroundJobWorkerOptions>(options =>
{
options.ApplicationName = context.Services.GetApplicationName()!;
});

Loading…
Cancel
Save