internal override ServerCredentialsSafeHandle ToNativeCredentials() { int count = keyCertificatePairs.Count; string[] certChains = new string[count]; string[] keys = new string[count]; for (int i = 0; i < count; i++) { certChains[i] = keyCertificatePairs[i].CertificateChain; keys[i] = keyCertificatePairs[i].PrivateKey; } return(ServerCredentialsSafeHandle.CreateSslCredentials(rootCertificates, certChains, keys, forceClientAuth)); }
public int AddSecurePort(string addr, ServerCredentialsSafeHandle credentials) { return(Native.grpcsharp_server_add_secure_http2_port(this, addr, credentials)); }
public int AddSecurePort(string addr, ServerCredentialsSafeHandle credentials) { return Native.grpcsharp_server_add_secure_http2_port(this, addr, credentials); }