A commande line interface
This commit is contained in:
parent
2f1249c2c3
commit
f8774add61
12 changed files with 14401 additions and 633 deletions
22
cli/InteractiveConsoleMiddleWare.cs
Normal file
22
cli/InteractiveConsoleMiddleWare.cs
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNet.Builder;
|
||||
using Microsoft.AspNet.Hosting;
|
||||
using Microsoft.AspNet.Http;
|
||||
|
||||
public class InteractiveConsoleMiddleWare
|
||||
{
|
||||
public InteractiveConsoleMiddleWare(RequestDelegate next)
|
||||
{
|
||||
_next = next;
|
||||
}
|
||||
|
||||
readonly RequestDelegate _next;
|
||||
|
||||
public async Task Invoke(HttpContext context, IHostingEnvironment hostingEnviroment)
|
||||
{
|
||||
//do something
|
||||
System.Console.WriteLine("kjhnlkhkl");
|
||||
await _next.Invoke(context);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue