コード例 #1
0
 /// <summary>
 /// Stops this service instance.
 /// </summary>
 protected override void StopService()
 {
     if (_serviceEndpoint != null)
     {
         _serviceEndpoint.Close();
         _serviceEndpoint = null;
     }
 }
コード例 #2
0
 /// <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();
 }