bool CloseScheduler(SchedulerId tScheduler)
tScheduler. Moniker of the scheduled tasks container instance to be closed.
The CloseScheduler operation closes the scheduled tasks container.
To execute the operation, in the tScheduler field specify moniker of the scheduled tasks container instance to be closed. The operation results in the logical True if the object was closed successfully.
Below is the example of closing the instance of scheduled tasks container instance. The request contains a container moniker. The response contains whether closing was successful.
{
"CloseScheduler" :
{
"tScheduler" :
{
"id" : "S1!M!6445"
}
}
}
{
"CloseSchedulerResult" : "1"
}
public static bool CloseTasksContainern(SchedulerId moniker)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tClose = new CloseScheduler()
{
tScheduler = moniker
};
//Close scheduled tasks container instance
var b = somClient.CloseScheduler(tClose);
return b;
}
See also: