public ClientInitializer(
     IAddressResolver addressResolver,
     ApplicationDbContext context,
     OpenIddictApplicationManager <OpenIddictApplication> manager,
     IScopeCollection scopes,
     IConfiguration configuration)
 {
     this.addressResolver = addressResolver;
     this.context         = context;
     this.manager         = manager;
     this.scopes          = scopes;
     this.configuration   = configuration;
 }
 public ConnectController(
     OpenIddictApplicationManager <OpenIddictApplication> applicationManager,
     IOptions <IdentityOptions> identityOptions,
     SignInManager <ApplicationUser> signInManager,
     UserManager <ApplicationUser> userManager,
     IScopeCollection scopes)
 {
     this.applicationManager = applicationManager;
     this.identityOptions    = identityOptions;
     this.signInManager      = signInManager;
     this.userManager        = userManager;
     this.scopes             = scopes;
 }