|
|
|
|
@ -52,7 +52,7 @@ After you have installed these NuGet packages, you need to configure your projec
|
|
|
|
|
var configuration = context.Services.GetConfiguration();
|
|
|
|
|
var hostingEnvironment = context.Services.GetHostingEnvironment();
|
|
|
|
|
|
|
|
|
|
//... other configarations.
|
|
|
|
|
//... other configurations.
|
|
|
|
|
|
|
|
|
|
ConfigureHangfire(context, configuration);
|
|
|
|
|
}
|
|
|
|
|
@ -68,7 +68,7 @@ After you have installed these NuGet packages, you need to configure your projec
|
|
|
|
|
|
|
|
|
|
> You have to configure a storage for Hangfire.
|
|
|
|
|
|
|
|
|
|
2. If you want to use hangfire's dashboard, you can add `UseHangfireDashboard` call in the `OnApplicationInitialization` method in `Module` class
|
|
|
|
|
2. If you want to use hangfire's dashboard, you can add `UseHangfireDashboard` call in the `OnApplicationInitialization` method in `Module` class:
|
|
|
|
|
|
|
|
|
|
````csharp
|
|
|
|
|
public override void OnApplicationInitialization(ApplicationInitializationContext context)
|
|
|
|
|
@ -84,7 +84,7 @@ After you have installed these NuGet packages, you need to configure your projec
|
|
|
|
|
|
|
|
|
|
### Specifying Queue
|
|
|
|
|
|
|
|
|
|
You can use the [`QueueAttribute`](https://docs.hangfire.io/en/latest/background-processing/configuring-queues.html) to specify the queue.
|
|
|
|
|
You can use the [`QueueAttribute`](https://docs.hangfire.io/en/latest/background-processing/configuring-queues.html) to specify the queue:
|
|
|
|
|
|
|
|
|
|
````csharp
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|