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
Type | Name |
---|---|
System.String | taskName |
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
Type | Name |
---|---|
System.Action | onExit |
GetDescFmt(Type)
View Source
Declaration
public static string GetDescFmt(Type nextRun)
Returns
System.String
Parameters
Type | Name |
---|---|
System.Type | nextRun |
GetDesc(Type)
View Source
Declaration
public static string GetDesc(Type nextRun)
Returns
System.String
Parameters
Type | Name |
---|---|
System.Type | nextRun |