Skip to content
Concord

Class ForeignRouteResult

Namespace
Concord.Detour
Assembly
Concord.Detour.dll

What a foreign patch host decided when asked to take over a target method.

public sealed class ForeignRouteResult
Inheritance
ForeignRouteResult
Inherited Members

Properties

Handle

The handle for the routed injections, set only when Kind is Routed.

public IDetourHandle? Handle { get; }

Property Value

IDetourHandle

Kind

Which of the three outcomes this result carries.

public ForeignRouteKind Kind { get; }

Property Value

ForeignRouteKind

Reason

Why the host refused, set only when Kind is Rejected.

public string? Reason { get; }

Property Value

string

Methods

NotContested()

Builds a result saying no foreign patcher has claimed the target.

public static ForeignRouteResult NotContested()

Returns

ForeignRouteResult

A NotContested result.

Rejected(string)

Builds a result saying the host refused the target.

public static ForeignRouteResult Rejected(string reason)

Parameters

reason string

Why the target could not be routed.

Returns

ForeignRouteResult

A Rejected result.

Routed(IDetourHandle)

Builds a result saying the host accepted the target.

public static ForeignRouteResult Routed(IDetourHandle handle)

Parameters

handle IDetourHandle

The handle that removes the routed injections when disposed.

Returns

ForeignRouteResult

A Routed result.