27 lines
635 B
C#
27 lines
635 B
C#
using Hangfire.Redis.StackExchange;
|
|
|
|
namespace YuanXuan.IM.Api.Hangfire
|
|
{
|
|
public class InitialHangfireService : IHostedService
|
|
{
|
|
private readonly IConfiguration _configuration;
|
|
public InitialHangfireService(IConfiguration configuration)
|
|
{
|
|
_configuration = configuration;
|
|
}
|
|
public Task StartAsync(CancellationToken cancellationToken)
|
|
{
|
|
|
|
|
|
return Task.CompletedTask;
|
|
}
|
|
public Task StopAsync(CancellationToken cancellationToken)
|
|
{
|
|
|
|
return Task.CompletedTask;
|
|
}
|
|
public void Dispose() {
|
|
}
|
|
}
|
|
}
|