internal override void Close() { if (!Closing && !Closed) { Logger.Debug("Closing RemoteDesktop Proxy to local service"); Closing = true; if (_proxy != null) { _proxy.Close(); } Closing = false; Closed = true; _proxy = null; } }
// This is called by the RDP Function, so stop listening and terminate connections internal override void Close() { if (!Closing && !Closed) { Logger.Debug("Closing RemoteDesktop ServerProxy"); Closing = true; if (_proxy != null) { _proxy.Close(); } _proxy = null; Closing = false; Closed = true; } }