public VertretungsplanController(VertretungsplanRepository cache, DataLoader dataLoader, Notifier notifier, IOptions <VertretungsplanControllerOptions> options)
 {
     this.cache      = cache;
     this.dataLoader = dataLoader;
     this.notifier   = notifier;
     this.options    = options.Value;
 }
        public DataLoader(VertretungsplanRepository cache, ILogger <DataLoader> logger, IOptions <DataLoaderOptions> options)
        {
            this.cache  = cache;
            this.logger = logger;

            client             = new HttpClient();
            client.BaseAddress = new Uri(options.Value.ApiHost);
        }
Esempio n. 3
0
        public DataLoader(VertretungsplanRepository cache, ILogger <DataLoader> logger, IOptions <DataLoaderOptions> options)
        {
            this.cache   = cache;
            this.logger  = logger;
            this.options = options.Value;

            s3 = new AmazonS3Client(Amazon.RegionEndpoint.EUCentral1);
        }
 public VertretungsplanHelper(VertretungsplanRepository cache, IOptions <ViewOptions> viewOptions)
 {
     this.cache       = cache;
     this.viewOptions = viewOptions.Value;
 }
 public VertretungsplanController(VertretungsplanRepository cache, VertretungsplanHelper helper, ResponseCachingHelper cachingHelper)
 {
     this.cache         = cache;
     this.helper        = helper;
     this.cachingHelper = cachingHelper;
 }