123456789101112131415161718192021 |
- using Microsoft.Extensions.DependencyInjection;
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace Bowin.Common.ServiceToken.ApiIdentity
- {
- public static class ApiIdentityHelper
- {
- internal static bool IsStarted { get; set; } = false;
- internal static Type SystemServiceType { get; set; }
- public static IServiceCollection AddApiIdentity<TSystemService>(this IServiceCollection service) where TSystemService : class, ISystemService
- {
- IsStarted = true;
- SystemServiceType = typeof(TSystemService);
- return service;
- }
- }
- }
|