Version: 13.0

    Show / Hide Table of Contents

    Class LegacyV2RuntimeActivationPolicyAttributeSetter

    Inheritance
    System.Object
    LegacyV2RuntimeActivationPolicyAttributeSetter
    Namespace: SMT.MastaAPI
    Assembly: SMT.MastaAPI.13.0.dll
    Syntax
    public static class LegacyV2RuntimeActivationPolicyAttributeSetter

    Methods

    EnsureConfigFileForCurrentAppDomainPermitsDotNet2()

    Declaration
    public static void EnsureConfigFileForCurrentAppDomainPermitsDotNet2()

    GetConfigFilePathForSetupAssembly()

    Infers the location of the app.config file for the setup assembly.

    This might not be an SMT assembly (e.g. using Python to run MASTA) so we can't use EntrySmtAssembly.

    For some reason, AppDomain.CurrentDomain.SetupInformation.ConfigurationFile doesn't reference the correct assembly in this case, so we have to use the stack trace instead.

    Declaration
    public static string GetConfigFilePathForSetupAssembly()
    Returns
    Type Description
    System.String
    Back to top