Skip to content

Commit c6d75a0

Browse files
authored
Merge pull request #25292 from abpframework/fix/25291-default-background-job-worker-options-configure
Update default background job worker options configuration in docs
2 parents 3502eae + 9733351 commit c6d75a0

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

  • docs/en/framework/infrastructure

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,9 +271,9 @@ If multiple applications share the same storage for background jobs and workers
271271
Set `ApplicationName` property in `AbpBackgroundJobWorkerOptions` to your application's name:
272272

273273
````csharp
274-
public override void PreConfigureServices(ServiceConfigurationContext context)
274+
public override void ConfigureServices(ServiceConfigurationContext context)
275275
{
276-
PreConfigure<AbpBackgroundJobWorkerOptions>(options =>
276+
Configure<AbpBackgroundJobWorkerOptions>(options =>
277277
{
278278
options.ApplicationName = context.Services.GetApplicationName()!;
279279
});

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,9 @@ If multiple applications share the same storage for background jobs and workers
152152
Set `ApplicationName` property in `AbpBackgroundJobWorkerOptions` to your application's name:
153153

154154
````csharp
155-
public override void PreConfigureServices(ServiceConfigurationContext context)
155+
public override void ConfigureServices(ServiceConfigurationContext context)
156156
{
157-
PreConfigure<AbpBackgroundJobWorkerOptions>(options =>
157+
Configure<AbpBackgroundJobWorkerOptions>(options =>
158158
{
159159
options.ApplicationName = context.Services.GetApplicationName()!;
160160
});

0 commit comments

Comments
 (0)