public static void AddIdentityFrontEndService(this IServiceCollection services, IConfiguration configuration, string identityServerUrl = "") { IdentityInjectionHelper.Init(ref services); IdentityInjectionHelper.SetBaseUrl(identityServerUrl); services.TryAddSingleton <IHttpContextAccessor, HttpContextAccessor>(); services.TryAddScoped <IUsersContext, UsersContext>(); services.TryAddScoped <ISignInRequestService, SignInRequestService>(); services.TryAddScoped <IRolesRequestServices, RolesRequestServices>(); services.TryAddScoped <IAccountsRequestService, AccountsRequestService>(); services.TryAddScoped <IAuthenticateRequestService, AuthenticateRequestService>(); }
public static void AddIdentityWebService(this IServiceCollection services, string identityServerUrl = null) { ConfigureServices(services); IdentityInjectionHelper.SetBaseUrl(identityServerUrl); }