DotNetAnalyzers / AspNetCoreAnalyzers

MIT License
62 stars 4 forks source link

Check that OnStarting is called before next #33

Open JohanLarsson opened 5 years ago

JohanLarsson commented 5 years ago
app.Use(async (context, next) =>
{
    context.Response.OnStarting(() =>
    {
        ...
        return Task.CompletedTask;
    });
    await next();
});