Skip to content

BindingPolicyParseResult

Namespace: Dotsider.Core.Analysis.Models

Assembly: Dotsider.Core.dll

Output of NetFxRuntimeVersion): the redirects, codeBase entries, per-identity publisher-policy disablements, probing privatePath segments, and the runtime-scoped publisher-policy bypass flag found in a single configuration file.

public sealed record BindingPolicyParseResult : IEquatable<BindingPolicyParseResult>

ObjectBindingPolicyParseResult

BindingPolicyParseResult(IReadOnlyList<BindingRedirect>, IReadOnlyList<CodeBaseEntry>, IReadOnlyCollection<(string Name, string? PublicKeyToken, string Culture)>, IReadOnlyList<string>, bool)

Section titled “BindingPolicyParseResult(IReadOnlyList<BindingRedirect>, IReadOnlyList<CodeBaseEntry>, IReadOnlyCollection<(string Name, string? PublicKeyToken, string Culture)>, IReadOnlyList<string>, bool)”

Output of NetFxRuntimeVersion): the redirects, codeBase entries, per-identity publisher-policy disablements, probing privatePath segments, and the runtime-scoped publisher-policy bypass flag found in a single configuration file.

Parameters:

  • Redirects (IReadOnlyList<BindingRedirect>): All &lt;bindingRedirect&gt; entries parsed from the file.
  • CodeBases (IReadOnlyList<CodeBaseEntry>): All &lt;codeBase&gt; entries parsed from the file.
  • Disabled (IReadOnlyCollection<String, String, String>>): Identities whose &lt;dependentAssembly&gt; block carried a &lt;publisherPolicy apply="no"/&gt; child.
  • PrivatePaths (IReadOnlyList<String>): All &lt;probing privatePath="..."/&gt; segments.
  • PublisherPolicyDisabledGlobally (Boolean): true when the file’s &lt;runtime&gt; element carried a top-level &lt;publisherPolicy apply="no"/&gt;, suppressing publisher policy for every bind in the AppDomain regardless of &lt;dependentAssembly&gt;.
public BindingPolicyParseResult(IReadOnlyList<BindingRedirect> Redirects, IReadOnlyList<CodeBaseEntry> CodeBases, IReadOnlyCollection<(string Name, string? PublicKeyToken, string Culture)> Disabled, IReadOnlyList<string> PrivatePaths, bool PublisherPolicyDisabledGlobally)

All &lt;codeBase&gt; entries parsed from the file.

Returns: IReadOnlyList<CodeBaseEntry>

public IReadOnlyList<CodeBaseEntry> CodeBases { get; init; }

Identities whose &lt;dependentAssembly&gt; block carried a &lt;publisherPolicy apply="no"/&gt; child.

Returns: IReadOnlyCollection<String, String, String>>

public IReadOnlyCollection<(string Name, string? PublicKeyToken, string Culture)> Disabled { get; init; }

All &lt;probing privatePath="..."/&gt; segments.

Returns: IReadOnlyList<String>

public IReadOnlyList<string> PrivatePaths { get; init; }

true when the file’s &lt;runtime&gt; element carried a top-level &lt;publisherPolicy apply="no"/&gt;, suppressing publisher policy for every bind in the AppDomain regardless of &lt;dependentAssembly&gt;.

Returns: Boolean

public bool PublisherPolicyDisabledGlobally { get; init; }

All &lt;bindingRedirect&gt; entries parsed from the file.

Returns: IReadOnlyList<BindingRedirect>

public IReadOnlyList<BindingRedirect> Redirects { get; init; }