-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d4203ea
commit dd69300
Showing
4 changed files
with
93 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
RosanicSocial.Application/Services/Background/RefreshTokenCheckerService.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using Microsoft.Extensions.Hosting; | ||
using Microsoft.Extensions.Logging; | ||
using RosanicSocial.Application.Interfaces; | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace RosanicSocial.Application.Services.Background { | ||
public class RefreshTokenCheckerService : BackgroundService { | ||
private readonly ILogger<RefreshTokenCheckerService> _logger; | ||
private readonly IJwtService _jwtService; | ||
public RefreshTokenCheckerService(ILogger<RefreshTokenCheckerService> logger, IJwtService jwtService) { | ||
_logger = logger; | ||
_jwtService = jwtService; | ||
} | ||
|
||
protected override async Task ExecuteAsync(CancellationToken stoppingToken) { | ||
//while (!stoppingToken.IsCancellationRequested) { | ||
// await _jwtService.GenerateNewAccessToken(); | ||
//} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters