/// <summary> /// Stops this service instance. /// </summary> protected override void StopService() { if (_serviceEndpoint != null) { _serviceEndpoint.Close(); _serviceEndpoint = null; } }
/// <summary> /// Initializes a new instance of the <see cref="EPrintJobMonitorWindowsService"/> class. /// </summary> public EPrintJobMonitorWindowsService() : base("EPrintJobMonitorWindowsService", "STF ePrint Job Monitor") { // Create the Endpoint _serviceEndpoint = new EPrintJobMonitorEndpoint(); }