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(this IServiceCollection service) where TSystemService : class, ISystemService { IsStarted = true; SystemServiceType = typeof(TSystemService); return service; } } }