Exemplo n.º 1
0
 public SampleDataGenerator(AllReadyContext context, IOptions <SampleDataSettings> options, IOptions <GeneralSettings> generalSettings, UserManager <ApplicationUser> userManager)
 {
     _context         = context;
     _settings        = options.Value;
     _generalSettings = generalSettings.Value;
     _userManager     = userManager;
 }
Exemplo n.º 2
0
 public AdminController(
     UserManager<ApplicationUser> userManager,
     SignInManager<ApplicationUser> signInManager,
     IEmailSender emailSender,
     ISmsSender smsSender,
     IOptions<SampleDataSettings> options)
 {
     _userManager = userManager;
     _signInManager = signInManager;
     _emailSender = emailSender;
     _smsSender = smsSender;
     _settings = options.Value;
 }
Exemplo n.º 3
0
 public AdminController(
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager,
     IEmailSender emailSender,
     ISmsSender smsSender,
     IOptions <SampleDataSettings> options,
     IOptions <GeneralSettings> generalSettings)
 {
     _userManager     = userManager;
     _signInManager   = signInManager;
     _emailSender     = emailSender;
     _smsSender       = smsSender;
     _settings        = options.Value;
     _generalSettings = generalSettings.Value;
 }
Exemplo n.º 4
0
 public AdminController(
     UserManager<ApplicationUser> userManager,
     SignInManager<ApplicationUser> signInManager,
     IMediator bus,
     IEmailSender emailSender,
     ISmsSender smsSender,
     IOptions<SampleDataSettings> options,
     IOptions<GeneralSettings> generalSettings)
 {
     _userManager = userManager;
     _signInManager = signInManager;
     _bus = bus;
     _emailSender = emailSender;
     _smsSender = smsSender;
     _settings = options.Value;
     _generalSettings = generalSettings.Value;
 }