Table of Contents

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

FilterScope

DefaultDescription

public override string DefaultDescription { get; }

Property Value

string

Response

The response

public MockedResponseContent Response { get; set; }

Property Value

MockedResponseContent

Methods

BuildDefaultInstance()

public static MockedResponseAction BuildDefaultInstance()

Returns

MockedResponseAction

GetExamples()

public override IEnumerable<ActionExample> GetExamples()

Returns

IEnumerable<ActionExample>

InternalAlter(ExchangeContext, Exchange?, Connection?, FilterScope, BreakPointManager)

public override ValueTask InternalAlter(ExchangeContext context, Exchange? exchange, Connection? connection, FilterScope scope, BreakPointManager breakPointManager)

Parameters

context ExchangeContext
exchange Exchange
connection Connection
scope FilterScope
breakPointManager BreakPointManager

Returns

ValueTask