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
SchemaSourcesIReadOnlyList<IBowireMockSchemaSource>Turn a schema file into a recording, by kind.
LiveSchemaHandlersIReadOnlyList<IBowireMockLiveSchemaHandler>Answer a schema kind per request (GraphQL).
HostingExtensionsIReadOnlyList<IBowireMockHostingExtension>Services and endpoints a schema mock needs (gRPC reflection, the schema document).
AuthRecordingsIAuthRecordingResolverResolves an
authRecordingIdin amockConfig'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
HostingExtensions
Services and endpoints a schema mock needs (gRPC reflection, the schema document).
public IReadOnlyList<IBowireMockHostingExtension> HostingExtensions { get; init; }
Property Value
LiveSchemaHandlers
Answer a schema kind per request (GraphQL).
public IReadOnlyList<IBowireMockLiveSchemaHandler> LiveSchemaHandlers { get; init; }
Property Value
SchemaSources
Turn a schema file into a recording, by kind.
public IReadOnlyList<IBowireMockSchemaSource> SchemaSources { get; init; }
Property Value
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
SchemaSourcesIReadOnlyList<IBowireMockSchemaSource>LiveSchemaHandlersIReadOnlyList<IBowireMockLiveSchemaHandler>HostingExtensionsIReadOnlyList<IBowireMockHostingExtension>AuthRecordingsIAuthRecordingResolver
Equals(BowireMcpMockSources?)
public bool Equals(BowireMcpMockSources? other)
Parameters
otherBowireMcpMockSources
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(BowireMcpMockSources?, BowireMcpMockSources?)
public static bool operator ==(BowireMcpMockSources? left, BowireMcpMockSources? right)
Parameters
leftBowireMcpMockSourcesrightBowireMcpMockSources
Returns
operator !=(BowireMcpMockSources?, BowireMcpMockSources?)
public static bool operator !=(BowireMcpMockSources? left, BowireMcpMockSources? right)
Parameters
leftBowireMcpMockSourcesrightBowireMcpMockSources