Skip to main content

AppTasks

Assembly: ServiceStack.Common.dll​
View Source​
Declaration
public class AppTasks

Properties​

Instance​

View Source​
Declaration
public static AppTasks Instance { get; set; }

Log​

View Source​
Declaration
public ILog Log { get; set; }

Tasks​

View Source​
Declaration
public Dictionary<string, Action<string[]>> Tasks { get; }

Methods​

Register(String, Action<String[]>)​

Register Task to run in APP_TASKS=task1;task2

View Source​
Declaration
public static void Register(string taskName, Action<string[]> appTask)
Parameters​
TypeName
System.StringtaskName
System.Action<System.String[]>appTask

GetAppTaskCommands()​

View Source​
Declaration
public static string GetAppTaskCommands()
Returns​

System.String

IsRunAsAppTask()​

View Source​
Declaration
public static bool IsRunAsAppTask()
Returns​

System.Boolean

RanAsTask()​

View Source​
Declaration
public static int? RanAsTask()
Returns​

System.Nullable<System.Int32>

Run(Action)​

View Source​
Declaration
public static void Run(Action onExit = null)
Parameters​
TypeName
System.ActiononExit

GetDescFmt(Type)​

View Source​
Declaration
public static string GetDescFmt(Type nextRun)
Returns​

System.String

Parameters​
TypeName
System.TypenextRun

GetDesc(Type)​

View Source​
Declaration
public static string GetDesc(Type nextRun)
Returns​

System.String

Parameters​
TypeName
System.TypenextRun