예제 #1
0
 public void Configure(WarmUpOptions options)
 {
     options.Path        = Path;
     options.Parallelism = Parallelism;
 }
예제 #2
0
 public WarmUpMiddleware(IWarmUpService warmUpService, IOptions <WarmUpOptions> options, RequestDelegate next)
 {
     _warmUpService = warmUpService;
     _options       = options.Value;
     _next          = next;
 }