AuditMcpOptions Class
Assembly: CodeEffects.Rule.Mcp.dll
Namespace: CodeEffects.Rule.Mcp
Summary
Holds the settings of the Audit library's part of the MCP server: the database the recorded evaluations are read from.
Syntax
public sealed class AuditMcpOptions
You never create this class. WithAudit(..) creates it and passes it to your configure delegate, where you set DbProvider.
Properties
DbProvider
Type: CodeEffects.Rule.Connection.IDbProvider
Gets or sets the database provider that the Audit library writes evaluations to. The server reads the evaluations from the same database. The default is null, and WithAudit(..) throws when it is not set.
Example
using CodeEffects.Rule.Mcp;
builder.Services
.AddCodeEffectsMcp(o => o.MapCaller = mapCaller)
.WithAudit(a => a.DbProvider = dbProvider);