Skip to content

Commit 3de09e9

Browse files
committed
pass in context to next middleware
1 parent 48911b2 commit 3de09e9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/BenchmarksApps/TLS/HttpSys/Program.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@
5353
Console.WriteLine("TLS: " + tlsHandshakeFeature.Protocol);
5454
Console.WriteLine("-----");
5555
}
56-
await next();
56+
57+
await next(context);
5758
});
5859
}
5960

@@ -65,7 +66,7 @@
6566
connectionIds.Add(context.Connection.Id);
6667
Console.WriteLine($"[stats] unique connections established: {connectionIds.Count}; fetched certificates: {fetchedCertsCounter}");
6768

68-
await next();
69+
await next(context);
6970
});
7071
}
7172

@@ -131,7 +132,7 @@ void OnShutdown()
131132
// we have a client cert here, and lets imagine we do the validation here
132133
// if (clientCert.Thumbprint != "1234567890") throw new NotImplementedException();
133134

134-
await next();
135+
await next(context);
135136
});
136137
}
137138

0 commit comments

Comments
 (0)