Ejemplo n.º 1
0
        public void SetNewPCSConnection(string url)
        {
            string newUrl = GetPCSUrlFromAnUrl(url);

            GrpcChannel channel = GrpcChannel.ForAddress(newUrl);

            PuppetMasterPCSService.PuppetMasterPCSServiceClient client =
                new PuppetMasterPCSService.PuppetMasterPCSServiceClient(channel);
            pcsSet.TryAdd(newUrl, new PCS(client));
        }
Ejemplo n.º 2
0
 public PCS(PuppetMasterPCSService.PuppetMasterPCSServiceClient client)
 {
     Stub = client ?? throw new ArgumentNullException("Client cannot be null.");
 }