---
title: IWebContextExtensions
summary: API reference for IWebContextExtensions.
status: draft
owner: SAIF Documentation
last_reviewed: 2026-09-17
library: SAIF.Framework.Web.Mvc
reference_type: package
---

# IWebContextExtensions

Provides `SetDefaultCurrentValue`, the single extension point consuming applications call to seed an initial context value only when the user has just arrived from a different application, avoiding accidental overwrites on same-application navigation.

## Purpose
- Provides `SetDefaultCurrentValue`, the single extension point consuming applications call to seed an initial context value only when the user has just arrived from a different application, avoiding accidental overwrites on same-application navigation.

## Context
- Namespace: `SAIF.Web`
- Assembly/package: `SAIF.Framework.Web.Mvc (source-shipping NuGet package)`
- Kind: static class

## Public members
| Member | Signature | Purpose |
| --- | --- | --- |
| SetDefaultCurrentValue(IWebContext, HttpRequestBase, params string[]) | `public static void SetDefaultCurrentValue(this IWebContext context, HttpRequestBase request, params string[] values)` | Sets `context.CurrentValue` to the first non-empty candidate value, but only when the request's referrer application differs from the current application; see the "Seed a default context value on cross-application arrival" operation. |

## Sources
- `src/Web/WebContextService.cs`
