Class LaunchTaskService
This command executes the LaunchTaskService system command
Launches the task service to run locally. Only possible if the client application is directly connected to the database, can not be run through the web service.
When running it is a complete version of the task service running locally on a separate thread. It will execute any task in the queue, not just ones created from this client.Inheritance
Implements
Inherited Members
Namespace: LemonEdge.Client.Core.Commands
Assembly: ClientCore.dll
Syntax
[CommandDescriptorOptions(Commands.LaunchTaskService, null)]
public class LaunchTaskService : ViewCommand, IHasChildren<EPCommandWithDescriptor>, IHasChildren, IDisposable, IEPCommandWithDescriptor, IEPCommand, ICommand, ICommandDescriptor
Constructors
LaunchTaskService(IModelLayoutCommon)
Creates a new LaunchTaskService command
Declaration
public LaunchTaskService(IModelLayoutCommon owner)
Parameters
Type | Name | Description |
---|---|---|
IModelLayoutCommon | owner | The owning context for this command |
Properties
Description
Declaration
public override string Description { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
IconID
Declaration
public override Guid IconID { get; }
Property Value
Type | Description |
---|---|
System.Guid |
Overrides
Title
Declaration
public override string Title { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
ToolTip
Declaration
public override string ToolTip { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Methods
InternalCanExecuteAsync(Object)
Returns true if this client application is directly connected to the database and has the LTConsoleTaskWorker app. Can not run a local task service otherwise.
Declaration
public override Task<bool> InternalCanExecuteAsync(object parameter)
Parameters
Type | Name | Description |
---|---|---|
System.Object | parameter | The command parameter |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Boolean> | True if this client application is directly connected to the database. Can not run a local task service otherwise. |
Overrides
InternalExecute(Object)
Toggles the local task service between its running and paused state.
When running it is a complete version of the task service running locally on a separate thread. It will execute any task in the queue, not just ones created from this client.
Declaration
public override void InternalExecute(object parameter)
Parameters
Type | Name | Description |
---|---|---|
System.Object | parameter | The command parameter |