GrpcConfig
Assembly: ServiceStack.GrpcClient.dll
View Source
Declaration
public static class GrpcConfig
Properties
TypeModel
View Source
Declaration
public static RuntimeTypeModel TypeModel { get; }
CompatibilityLevel
View Source
Declaration
public static CompatibilityLevel CompatibilityLevel { get; }
IgnoreTypeModel
View Source
Declaration
public static Func<Type, bool> IgnoreTypeModel { get; set; }
ServiceNameResolver
View Source
Declaration
public static Func<string, string, string> ServiceNameResolver { get; set; }
ServerStreamServiceNameResolver
View Source
Declaration
public static Func<string, string> ServerStreamServiceNameResolver { get; set; }
Methods
DefaultIgnoreTypes(Type)
View Source
Declaration
public static bool DefaultIgnoreTypes(Type type)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.Type | type |
DefaultServiceNameResolver(String, String)
View Source
Declaration
public static string DefaultServiceNameResolver(string verb, string requestName)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | verb |
System.String | requestName |
DefaultServerStreamServiceNameResolver(String)
View Source
Declaration
public static string DefaultServerStreamServiceNameResolver(string requestName)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | requestName |
Register<T>()
View Source
Declaration
public static MetaType Register<T>()
Returns
MetaType
Type Parameters
T
GetServiceName(String, String)
View Source
Declaration
public static string GetServiceName(string verb, string requestName)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | verb |
System.String | requestName |
GetServerStreamServiceName(String)
View Source
Declaration
public static string GetServerStreamServiceName(string requestName)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | requestName |
Register(Type)
View Source
Declaration
public static MetaType Register(Type type)
Returns
MetaType
Parameters
Type | Name |
---|---|
System.Type | type |
HasDynamicAttribute(Type, String)
View Source
Declaration
public static bool HasDynamicAttribute(Type requestType, string action)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.Type | requestType |
System.String | action |
IsAutoQueryService(Type, String)
View Source
Declaration
public static bool IsAutoQueryService(Type requestType, string action)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.Type | requestType |
System.String | action |
AutoQueryOrDynamicAttribute(Type, String)
View Source
Declaration
public static bool AutoQueryOrDynamicAttribute(Type requestType, string action)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.Type | requestType |
System.String | action |