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
ApplyCookies
Whether to apply stored cookies to requests. Default is true.
public bool ApplyCookies { get; set; }
Property Value
ApplyHeaders
Whether to apply stored headers to requests. Default is true.
public bool ApplyHeaders { get; set; }
Property Value
DefaultDescription
public override string DefaultDescription { get; }
Property Value
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
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
Methods
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
contextExchangeContextexchangeExchangeconnectionConnectionscopeFilterScopebreakPointManagerBreakPointManager