Class ProtoSource

Namespace
Kuestenlogik.Bowire
Assembly
Kuestenlogik.Bowire.dll

Source for proto file definitions. Used to provide service schemas when gRPC Server Reflection is not available.

public sealed class ProtoSource
Inheritance
ProtoSource
Inherited Members

Constructors

ProtoSource()

public ProtoSource()

Properties

Content

Proto file content as string.

public string? Content { get; set; }

Property Value

string

FilePath

Path to a .proto file on disk.

public string? FilePath { get; set; }

Property Value

string

Methods

FromContent(string)

Create from inline proto content.

public static ProtoSource FromContent(string protoContent)

Parameters

protoContent string

Returns

ProtoSource

FromFile(string)

Create from a file path.

public static ProtoSource FromFile(string path)

Parameters

path string

Returns

ProtoSource