Table of Contents

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

webHost IWebHost

The IWebHost to run.

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)

Parameters

host IHost

The IWebHost to run.