protected override void OnStop() { Logger.Log(LogLevel.Info, "Stopping service"); if (InfoServer != null) { InfoServer.Dispose(); InfoServer = null; } if (PrintProxy != null) { PrintProxy.Dispose(); PrintProxy = null; } if (PrintProcessor != null) { PrintProcessor.Dispose(); PrintProcessor = null; } Logger.Log(LogLevel.Info, "Service stopped"); this.Stopped.Set(); }
public CloudPrintInfoServer(int port, CloudPrintProxy printproxy) : this(String.Format("http://{0}:{1}", Environment.MachineName, port), printproxy) { }
public AuthServiceRegistration(CloudPrintProxy proxy) { this.PrintProxy = proxy; this.PrinterRegistrationTimes = new Dictionary <string, DateTime>(); this.AuthRegistrationTimer = new Timer(RegisterAuthService); }