diff --git a/docs/en/framework/infrastructure/background-jobs/index.md b/docs/en/framework/infrastructure/background-jobs/index.md index 2f27055f46..cdc4a1b5fb 100644 --- a/docs/en/framework/infrastructure/background-jobs/index.md +++ b/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(options => + Configure(options => { options.ApplicationName = context.Services.GetApplicationName()!; }); diff --git a/docs/en/framework/infrastructure/background-workers/index.md b/docs/en/framework/infrastructure/background-workers/index.md index a8e558cea1..912827ce94 100644 --- a/docs/en/framework/infrastructure/background-workers/index.md +++ b/docs/en/framework/infrastructure/background-workers/index.md @@ -212,9 +212,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(options => + Configure(options => { options.ApplicationName = context.Services.GetApplicationName()!; });