Beispiel #1
0
 public AdminRepository(DataContext context, IMapper mapper, SignInManager <AppUser> signInManager, UserManager <AppUser> userManager, sshSettings sshServer)
 {
     this.sshServer   = sshServer;
     this.userManager = userManager;
     this.mapper      = mapper;
     this.context     = context;
 }
Beispiel #2
0
 public AccountService(IOptions <sshSettings> config, IOptions <DuoSettings> duoConfig)
 {
     this.sshServer = new sshSettings(config.Value.Hostname, config.Value.Port,
                                      config.Value.Www2host, config.Value.Www2port,
                                      config.Value.Www2user, config.Value.Www2passwd,
                                      config.Value.Pc00host, config.Value.Pc00port,
                                      config.Value.Pc00user, config.Value.Pc00passwd,
                                      config.Value.Pc01host, config.Value.Pc01port,
                                      config.Value.Pc01user, config.Value.Pc01passwd);
     this.duoAuthConfig = new DuoAuthConfig(duoConfig.Value.Host, duoConfig.Value.IntegrationKey, duoConfig.Value.SecretKey);
 }
 public UnitOfWork(DataContext context, IMapper mapper, UserManager <AppUser> userManager, SignInManager <AppUser> signInManager, IOptions <sshSettings> config)
 {
     this.signInManager = signInManager;
     this.userManager   = userManager;
     this.context       = context;
     this.mapper        = mapper;
     this.sshServer     = new sshSettings(config.Value.Hostname, config.Value.Port,
                                          config.Value.Www2host, config.Value.Www2port,
                                          config.Value.Www2user, config.Value.Www2passwd,
                                          config.Value.Pc00host, config.Value.Pc00port,
                                          config.Value.Pc00user, config.Value.Pc00passwd,
                                          config.Value.Pc01host, config.Value.Pc01port,
                                          config.Value.Pc01user, config.Value.Pc01passwd);
 }