Table of Contents

Class RpcPatternBase

Namespace
TypedRest.CodeGeneration.Patterns.Rpc
Assembly
TypedRest.CodeGeneration.dll

Common base class for patterns that produce RPC endpoints.

public abstract class RpcPatternBase : PatternBase, IPattern
Inheritance
object
RpcPatternBase
Implements
Derived
Inherited Members

Properties

RequiredOperations

A list of OperationTypes the root of the path tree must support in order for this pattern to be applicable.

protected override OperationType[] RequiredOperations { get; }

Property Value

OperationType[]

Methods

BuildEndpoint(OpenApiOperation)

Builds the endpoint using information from the operation. null if the pattern does not match.

protected abstract IEndpoint? BuildEndpoint(OpenApiOperation operation)

Parameters

operation OpenApiOperation

Returns

IEndpoint

BuildEndpoint(OpenApiPathItem)

Builds the endpoint using information from the item. null if the pattern does not match.

protected override IEndpoint? BuildEndpoint(OpenApiPathItem item)

Parameters

item OpenApiPathItem

Returns

IEndpoint