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
Type | Name |
---|---|
System.String | baseUrl |
ServiceStack.GrpcClientConfig | config |
Client(GrpcChannel, GrpcClientConfig)
View Source
Declaration
public static CallInvoker Client(GrpcChannel channel, GrpcClientConfig config = null)
Returns
CallInvoker
Parameters
Type | Name |
---|---|
GrpcChannel | channel |
ServiceStack.GrpcClientConfig | config |
Client(String, X509Certificate2, GrpcClientConfig)
View Source
Declaration
public static CallInvoker Client(string baseUrl, X509Certificate2 cert, GrpcClientConfig config)
Returns
CallInvoker
Parameters
Type | Name |
---|---|
System.String | baseUrl |
System.Security.Cryptography.X509Certificates.X509Certificate2 | cert |
ServiceStack.GrpcClientConfig | config |
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
Type | Name |
---|---|
System.String | baseUrl |
System.Security.Cryptography.X509Certificates.X509Certificate2 | cert |
System.Func<System.Net.Http.HttpRequestMessage,System.Security.Cryptography.X509Certificates.X509Certificate2,System.Security.Cryptography.X509Certificates.X509Chain,System.Net.Security.SslPolicyErrors,System.Boolean> | serverCertificateCustomValidationCallback |
ServiceStack.GrpcClientConfig | config |
ForServiceStack(GrpcChannel, GrpcClientConfig)
View Source
Declaration
public static CallInvoker ForServiceStack(this GrpcChannel channel, GrpcClientConfig config = null)
Returns
CallInvoker
Parameters
Type | Name |
---|---|
GrpcChannel | channel |
ServiceStack.GrpcClientConfig | config |
DeserializeBuiltinResponseStatus(Byte[])
View Source
Declaration
public static object DeserializeBuiltinResponseStatus(byte[] protobufBytes)
Returns
System.Object
Parameters
Type | Name |
---|---|
System.Byte[] | protobufBytes |