Got a profile
This commit is contained in:
parent
8f524ca022
commit
bc3e3099b6
8 changed files with 20 additions and 13 deletions
|
|
@ -43,7 +43,7 @@ namespace cli.Commands
|
|||
var mailer = app.Services.GetService<EMailer>();
|
||||
var loggerFactory = app.Services.GetService<ILoggerFactory>();
|
||||
var logger = loggerFactory.CreateLogger<Program>();
|
||||
var userManager = app.Services.GetService<UserManager<ApplicationUser>>();
|
||||
var userManager = app.Services.GetService<UserManager<ApplicationDbContext>>();
|
||||
ApplicationDbContext dbContext = app.Services.GetService<ApplicationDbContext>();
|
||||
Func<ApplicationUser, bool> criteria = UserPolicies.Criterias["user-to-remove"];
|
||||
|
||||
|
|
|
|||
|
|
@ -158,7 +158,6 @@ namespace cli
|
|||
}
|
||||
);
|
||||
|
||||
|
||||
services.AddTransient(typeof(CompilationEngine),
|
||||
svs => {
|
||||
var logger = svs.GetService<ILoggerFactory>().CreateLogger<Startup>();
|
||||
|
|
@ -175,6 +174,7 @@ namespace cli
|
|||
PlatformServices.Default.Runtime,
|
||||
PlatformServices.Default.AssemblyLoadContextAccessor.Default, new CompilationCache()));
|
||||
});
|
||||
|
||||
services.AddTransient(typeof(IFrameworkReferenceResolver),
|
||||
svs => new FrameworkReferenceResolver());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue