Skip to content

McpRefreshOutcome

Namespace AgentPrism · Assembly AgentPrism.Abstractions.dll

The result of an IMcpToolRefresher.RefreshAsync call.

public readonly struct McpRefreshOutcome : IEquatable<McpRefreshOutcome>

IEquatable<McpRefreshOutcome>

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Whether this refresh ACTUALLY attempted to connect to at least one MCP server and failed (a network error such as a timeout or an active connection refusal). Deliberately skipping a server (a persistent configuration problem such as an invalid name/address or a missing OAuth callback configuration) is not included here — that is never the kind of situation that “fixes itself on retry”.

public required bool HadUnreachableServers { get; init; }

bool

The total number of tools discovered in this refresh.

public required int ToolCount { get; init; }

int

public override bool Equals(object obj)

obj object

bool

public bool Equals(McpRefreshOutcome other)

other McpRefreshOutcome

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(McpRefreshOutcome, McpRefreshOutcome)

Section titled “ operator ==(McpRefreshOutcome, McpRefreshOutcome)”
public static bool operator ==(McpRefreshOutcome left, McpRefreshOutcome right)

left McpRefreshOutcome

right McpRefreshOutcome

bool

operator !=(McpRefreshOutcome, McpRefreshOutcome)

Section titled “ operator !=(McpRefreshOutcome, McpRefreshOutcome)”
public static bool operator !=(McpRefreshOutcome left, McpRefreshOutcome right)

left McpRefreshOutcome

right McpRefreshOutcome

bool