Class TaskWebHostExtensions
- Namespace
- Steeltoe.Management.TaskCore
- Assembly
- Steeltoe.Management.TaskCore.dll
public static class TaskWebHostExtensions
- Inheritance
-
TaskWebHostExtensions
- Inherited Members
Methods
RunWithTasks(IWebHost)
Runs a web application, blocking the calling thread until the host shuts down.
To execute your task, invoke the application with argument "runtask=taskname", where "taskname" is your task's name. Command line arguments should be registered as a configuration source for this functionality to work.public static void RunWithTasks(this IWebHost webHost)
Parameters
RunWithTasks(IHost)
Runs a web application, blocking the calling thread until the host shuts down.
To execute your task, invoke the application with argument "runtask=taskname", where "taskname" is your task's name. Command line arguments should be registered as a configuration source for this functionality to work.public static void RunWithTasks(this IHost host)