Skip to main content

GrpcFeature

Assembly: ServiceStack.Extensions.dll
View Source
Declaration
public class GrpcFeature : object, IPlugin, IPreInitPlugin, IPostInitPlugin, IHasStringId, IHasId<string>

Properties

Id

View Source
Declaration
public string Id { get; set; }

ServicesName

View Source
Declaration
public string ServicesName { get; set; }

GrpcServicesBaseType

View Source
Declaration
public Type GrpcServicesBaseType { get; set; }

GrpcServicesType

View Source
Declaration
public Type GrpcServicesType { get; }

GenerateServiceFilter

View Source
Declaration
public Action<TypeBuilder, MethodBuilder, Type> GenerateServiceFilter { get; set; }

CreateDynamicService

View Source
Declaration
public Func<Type, string, bool> CreateDynamicService { get; set; }

ToGrpcStatus

View Source
Declaration
public Func<IResponse, Status?> ToGrpcStatus { get; set; }

DefaultMethodsForAny

Only generate specified Verb entries for "ANY" routes

View Source
Declaration
public List<string> DefaultMethodsForAny { get; set; }

AutoQueryMethodsForAny

View Source
Declaration
public List<string> AutoQueryMethodsForAny { get; set; }

GenerateMethodsForAny

View Source
Declaration
public Func<Type, List<string>> GenerateMethodsForAny { get; }

IgnoreResponseHeaders

View Source
Declaration
public HashSet<string> IgnoreResponseHeaders { get; set; }

RegisterServices

View Source
Declaration
public List<Type> RegisterServices { get; set; }

DisableResponseHeaders

View Source
Declaration
public bool DisableResponseHeaders { get; set; }

DisableRequestParamsInHeaders

View Source
Declaration
public bool DisableRequestParamsInHeaders { get; set; }

ProtoOptions

View Source
Declaration
public List<ProtoOptionDelegate> ProtoOptions { get; set; }

RegisterService

View Source
Declaration
public Func<Operation, bool?> RegisterService { get; set; }

Methods

DefaultGenerateMethodsForAny(Type)

View Source
Declaration
public List<string> DefaultGenerateMethodsForAny(Type requestType)
Returns

List<System.String>

Parameters
TypeName
TyperequestType

BeforePluginsLoaded(IAppHost)

View Source
Declaration
public void BeforePluginsLoaded(IAppHost appHost)
Parameters
TypeName
ServiceStack.IAppHostappHost

Register(IAppHost)

View Source
Declaration
public void Register(IAppHost appHost)
Parameters
TypeName
ServiceStack.IAppHostappHost

AfterPluginsLoaded(IAppHost)

View Source
Declaration
public void AfterPluginsLoaded(IAppHost appHost)
Parameters
TypeName
ServiceStack.IAppHostappHost

GenerateGrpcServices(IEnumerable<Operation>, IEnumerable<Type>)

View Source
Declaration
public Type GenerateGrpcServices(IEnumerable<Operation> metadataOperations, IEnumerable<Type> streamServices)
Returns

Type

Parameters
TypeName
IEnumerable<ServiceStack.Host.Operation>metadataOperations
IEnumerable<Type>streamServices

Implements