Skip to main content

GrpcServiceStack

Assembly: ServiceStack.GrpcClient.dll
View Source
Declaration
public static class GrpcServiceStack

Properties

ParseResponseStatus

View Source
Declaration
public static Func<byte[], object> ParseResponseStatus { get; set; }

Methods

Client(String, GrpcClientConfig)

View Source
Declaration
public static CallInvoker Client(string baseUrl, GrpcClientConfig config = null)
Returns

CallInvoker

Parameters
TypeName
System.StringbaseUrl
ServiceStack.GrpcClientConfigconfig

Client(GrpcChannel, GrpcClientConfig)

View Source
Declaration
public static CallInvoker Client(GrpcChannel channel, GrpcClientConfig config = null)
Returns

CallInvoker

Parameters
TypeName
GrpcChannelchannel
ServiceStack.GrpcClientConfigconfig

Client(String, X509Certificate2, GrpcClientConfig)

View Source
Declaration
public static CallInvoker Client(string baseUrl, X509Certificate2 cert, GrpcClientConfig config)
Returns

CallInvoker

Parameters
TypeName
System.StringbaseUrl
System.Security.Cryptography.X509Certificates.X509Certificate2cert
ServiceStack.GrpcClientConfigconfig

Client(String, X509Certificate2, Func<HttpRequestMessage, X509Certificate2, X509Chain, SslPolicyErrors, Boolean>, GrpcClientConfig)

View Source
Declaration
public static CallInvoker Client(string baseUrl, X509Certificate2 cert, Func<HttpRequestMessage, X509Certificate2, X509Chain, SslPolicyErrors, bool> serverCertificateCustomValidationCallback = null, GrpcClientConfig config = null)
Returns

CallInvoker

Parameters
TypeName
System.StringbaseUrl
System.Security.Cryptography.X509Certificates.X509Certificate2cert
System.Func<System.Net.Http.HttpRequestMessage,System.Security.Cryptography.X509Certificates.X509Certificate2,System.Security.Cryptography.X509Certificates.X509Chain,System.Net.Security.SslPolicyErrors,System.Boolean>serverCertificateCustomValidationCallback
ServiceStack.GrpcClientConfigconfig

ForServiceStack(GrpcChannel, GrpcClientConfig)

View Source
Declaration
public static CallInvoker ForServiceStack(this GrpcChannel channel, GrpcClientConfig config = null)
Returns

CallInvoker

Parameters
TypeName
GrpcChannelchannel
ServiceStack.GrpcClientConfigconfig

DeserializeBuiltinResponseStatus(Byte[])

View Source
Declaration
public static object DeserializeBuiltinResponseStatus(byte[] protobufBytes)
Returns

System.Object

Parameters
TypeName
System.Byte[]protobufBytes