Skip to content

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