Class MockedResponseAction
- Namespace
- Fluxzy.Rules.Actions.HighLevelActions
- Assembly
- Fluxzy.Core.dll
Mock completely a response.
[ActionMetadata("Reply with a pre-made response from a raw text or file")]
public class MockedResponseAction : Action
- Inheritance
-
MockedResponseAction
- Inherited Members
Constructors
MockedResponseAction(MockedResponseContent?)
public MockedResponseAction(MockedResponseContent? response)
Parameters
response
MockedResponseContent
Properties
ActionScope
public override FilterScope ActionScope { get; }
Property Value
DefaultDescription
public override string DefaultDescription { get; }
Property Value
Response
The response
public MockedResponseContent Response { get; set; }
Property Value
Methods
BuildDefaultInstance()
public static MockedResponseAction BuildDefaultInstance()
Returns
GetExamples()
public override IEnumerable<ActionExample> GetExamples()
Returns
InternalAlter(ExchangeContext, Exchange?, Connection?, FilterScope, BreakPointManager)
public override ValueTask InternalAlter(ExchangeContext context, Exchange? exchange, Connection? connection, FilterScope scope, BreakPointManager breakPointManager)
Parameters
context
ExchangeContextexchange
Exchangeconnection
Connectionscope
FilterScopebreakPointManager
BreakPointManager