Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
CoreSpider- Middleware
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
}
app.Use(async (context, next) =>
{
await context.Response.WriteAsync("Hello World check from Use method!");
await next();
});
app.Run(async (context) =>
{
await context.Response.WriteAsync("Hello World check from Run method!");
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment