|
Server Component Class: CRFramework.VISControls.VISServerControl
StopJob(JobName As System.String, AppDomainName As System.String)
Returns System.Boolean
The StopJob method sends a request to the BlueSky Integration Studio Server to Stop the specified job, if it is currently running.
[VB]
Imports CRFramework.VISControls
Dim VIS As VISServerControl |
Dim js As JobStatus |
|
VIS = New VISServerControl() |
|
VIS.UserName = "administrator" |
VIS.Password = "manager" |
VIS.ServerName = "localhost" |
|
VIS.Connect() |
|
js = VIS.GetJobStatus("myJob", "SharedDomain") |
If js.JobStatus = JobStatus.JobStatusTypes.Running Then |
VIS.StopJob("myJob", "SharedDomain") |
End If |
[C#]
using CRFramework.VISControls;
VISServerControl VIS; |
JobStatus js; |
|
VIS = new VISServerControl(); |
|
VIS.UserName = "administrator"; |
VIS.Password = "manager"; |
VIS.ServerName = "localhost"; |
|
VIS.Connect(); |
|
|
js = VIS.GetJobStatus("myJob", "SharedDomain"); |
if (js.JobStatus == JobStatus.JobStatusTypes.Running) |
{ |
VIS.StopJob("myJob", "SharedDomain"); |
} |
|
© 2003 - 2007 Relational Solutions, Inc. - All rights reserved