コード例 #1
0
 public Task MartinTest(TestContext ctx, CancellationToken cancellationToken,
                        HttpServerProvider provider,
                        HttpInstrumentationTestType type,
                        HttpInstrumentationTestRunner runner)
 {
     return(runner.Run(ctx, cancellationToken));
 }
コード例 #2
0
 static HttpInstrumentationTestType GetEffectiveType(HttpInstrumentationTestType type)
 {
     if (type == HttpInstrumentationTestType.MartinTest)
     {
         return(MartinTest);
     }
     return(type);
 }
コード例 #3
0
 public Task RunStress(TestContext ctx, CancellationToken cancellationToken,
                       HttpServerProvider provider,
                       [Repeat(50)] int repeat,
                       HttpInstrumentationTestType type,
                       HttpInstrumentationTestRunner runner)
 {
     ctx.LogDebug(1, $"RunStress: {repeat}");
     return(runner.Run(ctx, cancellationToken));
 }
コード例 #4
0
 public HttpInstrumentationTestRunner(HttpServerProvider provider, HttpInstrumentationTestType type)
     : base(provider, type.ToString())
 {
     Type = type;
 }