Table of Contents

Class ApplySessionAction

Namespace
Fluxzy.Rules.Actions.HighLevelActions
Assembly
Fluxzy.Core.dll

Applies previously captured session data to requests. Adds stored cookies and headers to outgoing requests for the matching domain.

[ActionMetadata("Apply captured session data to requests. Adds cookies from session store and optionally applies stored headers. Works in conjunction with CaptureSessionAction.")]
public class ApplySessionAction : Action
Inheritance
ApplySessionAction
Inherited Members

Constructors

ApplySessionAction()

public ApplySessionAction()

Properties

ActionScope

public override FilterScope ActionScope { get; }

Property Value

FilterScope

ApplyCookies

Whether to apply stored cookies to requests. Default is true.

public bool ApplyCookies { get; set; }

Property Value

bool

ApplyHeaders

Whether to apply stored headers to requests. Default is true.

public bool ApplyHeaders { get; set; }

Property Value

bool

DefaultDescription

public override string DefaultDescription { get; }

Property Value

string

MergeWithExisting

Whether to merge with existing cookies/headers or replace them. When true, session cookies are added to existing cookies. When false, existing cookies are replaced entirely. Default is true.

public bool MergeWithExisting { get; set; }

Property Value

bool

SourceDomain

Optional: specify a different domain to get session from. Useful for subdomain scenarios (e.g., apply session from "example.com" to "api.example.com"). Supports variable evaluation.

public string? SourceDomain { get; set; }

Property Value

string

Methods

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