Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.1.20
|
Leadtools.Ccow.Services Namespace > ContextManagementRegistryService Class : IsStarted Property |
public bool IsStarted {get;}
'Declaration
Public ReadOnly Property IsStarted As Boolean
'Usage
Dim instance As ContextManagementRegistryService Dim value As Boolean value = instance.IsStarted
Imports Leadtools.Ccow Imports Leadtools.Ccow.Services Private service As ContextManagementRegistryService <TestMethod()> _ 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
using Leadtools.Ccow; using Leadtools.Ccow.Services; private ContextManagementRegistryService service; [TestMethod] 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(); }