Skip to content

AppliedPolicy

Namespace: Dotsider.Core.Analysis.Models

Assembly: Dotsider.Core.dll

Records that a requested identity was rewritten by .NET Framework binding policy. Carried on AppliedPolicy so the UI can render ”↪ redirected 1.0.0.0 → 13.0.0.0 via app.config” without inventing new AssemblyProvenance values for redirected hits — a redirect-applied AppLocal hit is still AppLocal, just with this annotation attached.

public sealed record AppliedPolicy : IEquatable<AppliedPolicy>

ObjectAppliedPolicy

AppliedPolicy(PolicyLayer, Version, Version, string?)

Section titled “AppliedPolicy(PolicyLayer, Version, Version, string?)”

Records that a requested identity was rewritten by .NET Framework binding policy. Carried on AppliedPolicy so the UI can render ”↪ redirected 1.0.0.0 → 13.0.0.0 via app.config” without inventing new AssemblyProvenance values for redirected hits — a redirect-applied AppLocal hit is still AppLocal, just with this annotation attached.

Parameters:

  • Source (PolicyLayer): The policy layer that produced the rewrite.
  • RequestedVersion (Version): The version named by the metadata reference.
  • BoundVersion (Version): The version the binder actually loaded.
  • CodeBaseHref (String): When Source is CodeBase, the configured href attribute. null for non-codeBase sources.
public AppliedPolicy(PolicyLayer Source, Version RequestedVersion, Version BoundVersion, string? CodeBaseHref)

The version the binder actually loaded.

Returns: Version

public Version BoundVersion { get; init; }

When Source is CodeBase, the configured href attribute. null for non-codeBase sources.

Returns: String

public string? CodeBaseHref { get; init; }

The version named by the metadata reference.

Returns: Version

public Version RequestedVersion { get; init; }

The policy layer that produced the rewrite.

Returns: PolicyLayer

public PolicyLayer Source { get; init; }