Struct CreateDetourRequest
A request to create an ICoreDetour.
[CLSCompliant(true)]
public readonly record struct CreateDetourRequest
Constructors
- CreateDetourRequest(MethodBase, MethodBase)
- A request to create an ICoreDetour.
Properties
- ApplyByDefault
- Gets or sets whether or not the detour should be applied when CreateDetour(CreateDetourRequest) returns. Defaults to true.
- CreateSourceCloneIfNotILClone
- Gets or sets whether the detour factory should create a clone of Source which, when called, behaves as-if the source was not detoured. If the IDetourFactory supports this, the created ICoreDetour will implement ICoreDetourWithClone, and the clone will be available from SourceMethodClone.
- Source
- The source method for the detour.
- Target
- The target method for the detour.