mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-23 20:36:33 +01:00
934b0cf381
1. Create named pipe: “HealthCheckServicePipe” 2. Receive credential send from XenServer and decrypt it 3. Update credential setting and save encrypted credential using current user scope system user. 4. Create work thread to handle the pipe communication. 5. If HealthCheckServicePipe already existed before service start, stop service and output service error log 6. If sign off information is received for a host (XenserverName or IP without username and password) then the existing saved credentials will be deleted 7. If the HealthCheckService connects to a host that is no longer enrolled, then it will delete the existing saved credentials Signed-off-by: Cheng Zhang <cheng.zhang@citrix.com>
19 lines
519 B
C#
Executable File
19 lines
519 B
C#
Executable File
using System;
|
|
using XenServerHealthCheck;
|
|
|
|
namespace XenServerHealthCheckTests
|
|
{
|
|
class Program
|
|
{
|
|
static void Main(string[] args)
|
|
{
|
|
CredentialTests.CredentialReceiverTests();
|
|
|
|
RequestUploadTaskTests requestUploadTaskTests = new RequestUploadTaskTests();
|
|
requestUploadTaskTests.CheckUnenrolledHostShouldRemoved();
|
|
requestUploadTaskTests.checkUploadLock();
|
|
requestUploadTaskTests.checkDemandLock();
|
|
}
|
|
}
|
|
}
|