diff options
author | crupest <crupest@outlook.com> | 2021-04-28 16:55:37 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-04-28 16:55:37 +0800 |
commit | 344d189e5860a20ebe42cec03b86974a2a3aaa95 (patch) | |
tree | c3958d2ea965c0f31a498501ffe6ab77ed8e35ad /BackEnd/Timeline/Services/Token/TokenServiceColletionExtensions.cs | |
parent | d4d0836279f83bbd3d0f47873cd1e182e4459e65 (diff) | |
download | timeline-344d189e5860a20ebe42cec03b86974a2a3aaa95.tar.gz timeline-344d189e5860a20ebe42cec03b86974a2a3aaa95.tar.bz2 timeline-344d189e5860a20ebe42cec03b86974a2a3aaa95.zip |
refactor: ...
Diffstat (limited to 'BackEnd/Timeline/Services/Token/TokenServiceColletionExtensions.cs')
-rw-r--r-- | BackEnd/Timeline/Services/Token/TokenServiceColletionExtensions.cs | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/BackEnd/Timeline/Services/Token/TokenServiceColletionExtensions.cs b/BackEnd/Timeline/Services/Token/TokenServiceColletionExtensions.cs deleted file mode 100644 index d3219ec4..00000000 --- a/BackEnd/Timeline/Services/Token/TokenServiceColletionExtensions.cs +++ /dev/null @@ -1,18 +0,0 @@ -using Microsoft.Extensions.Configuration;
-using Microsoft.Extensions.DependencyInjection;
-using Timeline.Configs;
-
-namespace Timeline.Services.Token
-{
- public static class TokenServiceColletionExtensions
- {
- public static IServiceCollection AddTokenService(this IServiceCollection services, IConfiguration configuration)
- {
- services.Configure<TokenOptions>(configuration.GetSection("Token"));
- services.Configure<JwtOptions>(configuration.GetSection("Jwt"));
- services.AddScoped<IUserTokenHandler, JwtUserTokenHandler>();
- services.AddScoped<IUserTokenManager, UserTokenManager>();
- return services;
- }
- }
-}
|