Class ForeignRouteResult
What a foreign patch host decided when asked to take over a target method.
public sealed class ForeignRouteResult
- Inheritance
-
ForeignRouteResult
- Inherited Members
Properties
Handle
public IDetourHandle? Handle { get; }
Property Value
Kind
Which of the three outcomes this result carries.
public ForeignRouteKind Kind { get; }
Property Value
Reason
public string? Reason { get; }
Property Value
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
reasonstringWhy 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
handleIDetourHandleThe handle that removes the routed injections when disposed.
Returns
- ForeignRouteResult
A Routed result.