public SqlServerCompiler( IOptions <CompilerOptions> compilerOptions, IOptions <CohortOptions> cohortOptions) { this.compilerOptions = compilerOptions.Value; this.cohortOptions = cohortOptions.Value; }
public CohortCacheService( IOptions <AppDbOptions> appDbOptions, IOptions <CohortOptions> cohortOptions ) { dbOptions = appDbOptions.Value; this.cohortOptions = cohortOptions.Value; }
public SqlServerCompiler( IUserContext userContext, IOptions <CompilerOptions> compilerOptions, IOptions <CohortOptions> cohortOptions) { this.user = userContext; this.compilerOptions = compilerOptions.Value; this.cohortOptions = cohortOptions.Value; }
public CohortCacheService( IOptions <AppDbOptions> appDbOptions, IOptions <CohortOptions> cohortOptions, ILogger <CohortCacheService> logger ) { dbOptions = appDbOptions.Value; this.cohortOptions = cohortOptions.Value; log = logger; }
public ConfigController( IOptions <AuthenticationOptions> authenticationOptions, IOptions <LeafVersionOptions> versionOptions, IOptions <CohortOptions> cohortOptions, IOptions <ClientOptions> clientOptions) { this.authenticationOptions = authenticationOptions.Value; this.versionOptions = versionOptions.Value; this.cohortOptions = cohortOptions.Value; this.clientOptions = clientOptions.Value; }
static IServiceCollection ConfigureCohortOptions(this IServiceCollection services, IConfiguration config) { var cohortOpts = new CohortOptions { RowLimit = config.GetValue <int>(Config.Cohort.RowLimit), ExportLimit = config.GetValue <int>(Config.Cohort.ExportLimit) }; services.Configure <CohortOptions>(opts => { opts.RowLimit = cohortOpts.RowLimit; opts.ExportLimit = cohortOpts.ExportLimit; }); return(services); }
public ConfigController( IOptions <AuthenticationOptions> authenticationOptions, IOptions <LeafVersionOptions> versionOptions, IOptions <CohortOptions> cohortOptions, IOptions <ClientOptions> clientOptions, IOptions <AttestationOptions> attestationOptions, IOptions <DeidentificationOptions> deidentOptions, IServerStateCache serverStateCache) { this.authenticationOptions = authenticationOptions.Value; this.versionOptions = versionOptions.Value; this.cohortOptions = cohortOptions.Value; this.clientOptions = clientOptions.Value; this.attestationOptions = attestationOptions.Value; this.deidentOptions = deidentOptions.Value; this.serverStateCache = serverStateCache; }
public UserController( ILogger <UserController> logger, IOptions <AuthenticationOptions> authenticationOptions, IOptions <LeafVersionOptions> versionOptions, IOptions <CohortOptions> cohortOptions, IOptions <ClientOptions> clientOptions, IUserJwtProvider userJwtProvider, IUserContext userContext) { this.logger = logger; this.authenticationOptions = authenticationOptions.Value; this.versionOptions = versionOptions.Value; this.cohortOptions = cohortOptions.Value; this.clientOptions = clientOptions.Value; this.userContext = userContext; jwtProvider = userJwtProvider; }