TaskCondition Generic Class
Used to associate a task to a business object that has been selected in the list pane of the Administration Console.
Namespace: Microsoft.EssentialBusinessServer.Console.ObjectModel
Assembly: Microsoft.EssentialBusinessServer.Console.ObjectModel (in microsoft.essentialbusinessserver.console.objectmodel.dll)
Assembly: Microsoft.EssentialBusinessServer.Console.ObjectModel (in microsoft.essentialbusinessserver.console.objectmodel.dll)
The following code example shows how to define a SelectionTask and define a TaskCondition object for the task using a delegate method:
SelectionTask<BusinessObject> task = null;
task = new ProcessTask<BusinessObject>("Selection Task", "notepad.exe");
task.ConditionProvider = ShouldShowTask;
private static TaskCondition ShouldShowTask(BusinessObject businessObj)
{
return businessObj.OSVersion == "Windows Vista" ?
TaskCondition.Default : TaskCondition.NotApplicable;
}
Community Additions
Show: