Skip to main content

GrpcServiceBase

Assembly: ServiceStack.Extensions.dll
View Source
Declaration
public abstract class GrpcServiceBase : IGrpcService

Properties

RpcGateway

View Source
Declaration
protected RpcGateway RpcGateway { get; }

Feature

View Source
Declaration
protected GrpcFeature Feature { get; }

Methods

WriteResponseHeadersAsync(IResponse, CallContext)

View Source
Declaration
protected async Task WriteResponseHeadersAsync(IResponse httpRes, CallContext context)
Returns

Task

Parameters
TypeName
ServiceStack.Web.IResponsehttpRes
CallContextcontext

ExecuteDynamic<TResponse>(String, DynamicRequest, CallContext, Type)

View Source
Declaration
protected virtual Task<TResponse> ExecuteDynamic<TResponse>(string method, DynamicRequest request, CallContext context, Type requestType)
Returns

Task<<TResponse>>

Parameters
TypeName
System.Stringmethod
ServiceStack.DynamicRequestrequest
CallContextcontext
TyperequestType
Type Parameters
  • TResponse

Execute<TResponse>(String, Object, CallContext)

View Source
Declaration
protected virtual async Task<TResponse> Execute<TResponse>(string method, object request, CallContext context)
Returns

Task<<TResponse>>

Parameters
TypeName
System.Stringmethod
System.Objectrequest
CallContextcontext
Type Parameters
  • TResponse

PopulateRequestFromHeaders(Object, Grpc.Core.Metadata)

View Source
Declaration
protected virtual void PopulateRequestFromHeaders(object request, Grpc.Core.Metadata headers)
Parameters
TypeName
System.Objectrequest
Grpc.Core.Metadataheaders

Stream<TRequest, TResponse>(TRequest, CallContext)

View Source
Declaration
protected virtual async IAsyncEnumerable<TResponse> Stream<TRequest, TResponse>(TRequest request, CallContext context)
Returns

IAsyncEnumerable<<TResponse>>

Parameters
TypeName
<TRequest>request
CallContextcontext
Type Parameters
  • TRequest
  • TResponse

StreamService<TRequest, TResponse>(IStreamService<TRequest, TResponse>, TRequest, CancellationToken)

View Source
Declaration
protected virtual async IAsyncEnumerable<TResponse> StreamService<TRequest, TResponse>(IStreamService<TRequest, TResponse> service, TRequest request, CancellationToken cancel)
Returns

IAsyncEnumerable<<TResponse>>

Parameters
TypeName
ServiceStack.IStreamService<<TRequest>,<TResponse>>service
<TRequest>request
CancellationTokencancel
Type Parameters
  • TRequest
  • TResponse

ToGrpcStatus(Int32, String)

View Source
Declaration
protected Status ToGrpcStatus(int httpStatus, string detail)
Returns

Status

Parameters
TypeName
System.Int32httpStatus
System.Stringdetail