Browse Source
Merge pull request #25300 from abpframework/auto-merge/rel-10-3/4513
Merge branch dev with rel-10.3
pull/25306/head
Volosoft Agent
2 weeks ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
4 additions and
4 deletions
-
docs/en/framework/infrastructure/background-jobs/index.md
-
docs/en/framework/infrastructure/background-workers/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: |
|
|
Set `ApplicationName` property in `AbpBackgroundJobWorkerOptions` to your application's name: |
|
|
|
|
|
|
|
|
````csharp |
|
|
````csharp |
|
|
public override void PreConfigureServices(ServiceConfigurationContext context) |
|
|
public override void ConfigureServices(ServiceConfigurationContext context) |
|
|
{ |
|
|
{ |
|
|
PreConfigure<AbpBackgroundJobWorkerOptions>(options => |
|
|
Configure<AbpBackgroundJobWorkerOptions>(options => |
|
|
{ |
|
|
{ |
|
|
options.ApplicationName = context.Services.GetApplicationName()!; |
|
|
options.ApplicationName = context.Services.GetApplicationName()!; |
|
|
}); |
|
|
}); |
|
|
|
|
|
@ -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: |
|
|
Set `ApplicationName` property in `AbpBackgroundJobWorkerOptions` to your application's name: |
|
|
|
|
|
|
|
|
````csharp |
|
|
````csharp |
|
|
public override void PreConfigureServices(ServiceConfigurationContext context) |
|
|
public override void ConfigureServices(ServiceConfigurationContext context) |
|
|
{ |
|
|
{ |
|
|
PreConfigure<AbpBackgroundJobWorkerOptions>(options => |
|
|
Configure<AbpBackgroundJobWorkerOptions>(options => |
|
|
{ |
|
|
{ |
|
|
options.ApplicationName = context.Services.GetApplicationName()!; |
|
|
options.ApplicationName = context.Services.GetApplicationName()!; |
|
|
}); |
|
|
}); |
|
|
|