IsStarted Property
Summary
Is the service started.
Syntax
public bool IsStarted { get; }
Public ReadOnly Property IsStarted As Boolean
public:
property bool IsStarted {
bool get();
}
Property Value
True if the service started; otherwise it is false.
Example
using Leadtools.Ccow;
using Leadtools.Ccow.Services;
private ContextManagementRegistryService service;
public void StartService()
{
// Create ContextManagementRegistryService
if (service == null)
service = new ContextManagementRegistryService();
if (!service.IsStarted)
{
// Start the service to listen for Locate CCOW components requests
service.Start();
}
}
public void StopService()
{
if (service != null && service.IsStarted)
service.Stop();
}
Imports Leadtools.Ccow
Imports Leadtools.Ccow.Services
Private service As ContextManagementRegistryService
Public Sub StartService()
' Create ContextManagementRegistryService
If service Is Nothing Then
service = New ContextManagementRegistryService()
End If
If Not service.IsStarted Then
' Start the service to listen for Locate CCOW components requests
service.Start()
End If
End Sub
Public Sub StopService()
If service IsNot Nothing AndAlso service.IsStarted Then
service.Stop()
End If
End Sub