Class BowireMcpMockSources

Namespace
Kuestenlogik.Bowire.Mcp
Assembly
Kuestenlogik.Bowire.Mcp.dll

The plugins' mock contributions a host hands to bowire.mock.start (#1105): schema sources (OpenAPI, protobuf, GraphQL → a recording), live schema handlers and hosting extensions, the same three bowire mock --schema passes to the mock. Register one in the container; without it the tool starts recording mocks only.

public sealed record BowireMcpMockSources : IEquatable<BowireMcpMockSources>
Inheritance
BowireMcpMockSources
Implements
Inherited Members

Constructors

BowireMcpMockSources(IReadOnlyList<IBowireMockSchemaSource>, IReadOnlyList<IBowireMockLiveSchemaHandler>, IReadOnlyList<IBowireMockHostingExtension>, IAuthRecordingResolver?)

The plugins' mock contributions a host hands to bowire.mock.start (#1105): schema sources (OpenAPI, protobuf, GraphQL → a recording), live schema handlers and hosting extensions, the same three bowire mock --schema passes to the mock. Register one in the container; without it the tool starts recording mocks only.

public BowireMcpMockSources(IReadOnlyList<IBowireMockSchemaSource> SchemaSources, IReadOnlyList<IBowireMockLiveSchemaHandler> LiveSchemaHandlers, IReadOnlyList<IBowireMockHostingExtension> HostingExtensions, IAuthRecordingResolver? AuthRecordings = null)

Parameters

SchemaSources IReadOnlyList<IBowireMockSchemaSource>

Turn a schema file into a recording, by kind.

LiveSchemaHandlers IReadOnlyList<IBowireMockLiveSchemaHandler>

Answer a schema kind per request (GraphQL).

HostingExtensions IReadOnlyList<IBowireMockHostingExtension>

Services and endpoints a schema mock needs (gRPC reflection, the schema document).

AuthRecordings IAuthRecordingResolver

Resolves an authRecordingId in a mockConfig's auth block to its credential (#1103); null leaves such a configuration refused.

Properties

AuthRecordings

Resolves an authRecordingId in a mockConfig's auth block to its credential (#1103); null leaves such a configuration refused.

public IAuthRecordingResolver? AuthRecordings { get; init; }

Property Value

IAuthRecordingResolver

HostingExtensions

Services and endpoints a schema mock needs (gRPC reflection, the schema document).

public IReadOnlyList<IBowireMockHostingExtension> HostingExtensions { get; init; }

Property Value

IReadOnlyList<IBowireMockHostingExtension>

LiveSchemaHandlers

Answer a schema kind per request (GraphQL).

public IReadOnlyList<IBowireMockLiveSchemaHandler> LiveSchemaHandlers { get; init; }

Property Value

IReadOnlyList<IBowireMockLiveSchemaHandler>

SchemaSources

Turn a schema file into a recording, by kind.

public IReadOnlyList<IBowireMockSchemaSource> SchemaSources { get; init; }

Property Value

IReadOnlyList<IBowireMockSchemaSource>

Methods

Deconstruct(out IReadOnlyList<IBowireMockSchemaSource>, out IReadOnlyList<IBowireMockLiveSchemaHandler>, out IReadOnlyList<IBowireMockHostingExtension>, out IAuthRecordingResolver?)

public void Deconstruct(out IReadOnlyList<IBowireMockSchemaSource> SchemaSources, out IReadOnlyList<IBowireMockLiveSchemaHandler> LiveSchemaHandlers, out IReadOnlyList<IBowireMockHostingExtension> HostingExtensions, out IAuthRecordingResolver? AuthRecordings)

Parameters

SchemaSources IReadOnlyList<IBowireMockSchemaSource>
LiveSchemaHandlers IReadOnlyList<IBowireMockLiveSchemaHandler>
HostingExtensions IReadOnlyList<IBowireMockHostingExtension>
AuthRecordings IAuthRecordingResolver

Equals(BowireMcpMockSources?)

public bool Equals(BowireMcpMockSources? other)

Parameters

other BowireMcpMockSources

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(BowireMcpMockSources?, BowireMcpMockSources?)

public static bool operator ==(BowireMcpMockSources? left, BowireMcpMockSources? right)

Parameters

left BowireMcpMockSources
right BowireMcpMockSources

Returns

bool

operator !=(BowireMcpMockSources?, BowireMcpMockSources?)

public static bool operator !=(BowireMcpMockSources? left, BowireMcpMockSources? right)

Parameters

left BowireMcpMockSources
right BowireMcpMockSources

Returns

bool