Update hubcontext.md (#9547)

pull/9466/head^2
Ahmed Yahia 2018-11-14 18:25:28 +02:00 committed by Scott Addie
parent 0d1834264f
commit 7e53e1a380
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ Now, with access to an instance of `IHubContext`, you can call hub methods as if
Access the `IHubContext` within the middleware pipeline like so:
```csharp
app.Use(next => async (context) =>
app.Use(async (context, next) =>
{
var hubContext = context.RequestServices
.GetRequiredService<IHubContext<MyHub>>();