Example #1
0
        private void InitServerAndClient()
        {
            var keyStore = _certificateStore.LoadKeyStore("test");
            var cert     = _certificateStore.LoadCertificate("test");
            var keyCert  = new KeyCertificatePair(cert, keyStore);

            _server.StartAsync(Host, ListenPort).Wait();

            string uri = $"{Host}:{ListenPort}";

            parentClient = new GrpcClientForParentChain(uri, 0, 1);
            sideClient   = new GrpcClientForSideChain(uri, 1);
        }