protected override bool StopJob(Job operation) { if (!_jobPids.ContainsKey(operation.Guid)) { return(false); } var ssh = new Chilkat.Ssh(); if (!ssh.Connect(_domainName, _port)) { return(false); } if (!ssh.AuthenticatePk(_username, _privateKey)) { return(false); } var result = ssh.ChannelSendClose(_jobPids[operation.Guid]); _jobPids.Remove(operation.Guid); return(result); }