コード例 #1
0
    private void VaryByAncmHostingModel(IList <TestVariant> variants, ServerType server, string tfm, ApplicationType type, RuntimeArchitecture arch, string skip)
    {
        foreach (var hostingModel in HostingModels)
        {
            var skipAncm = skip;
            if (hostingModel == HostingModel.InProcess)
            {
                // Not supported
                if (Tfm.Matches(Tfm.Net462, tfm) || Tfm.Matches(Tfm.NetCoreApp20, tfm))
                {
                    continue;
                }

                if (!IISExpressAncmSchema.SupportsInProcessHosting)
                {
                    skipAncm = skipAncm ?? IISExpressAncmSchema.SkipReason;
                }
            }

            variants.Add(new TestVariant()
            {
                Server          = server,
                Tfm             = tfm,
                ApplicationType = type,
                Architecture    = arch,
                HostingModel    = hostingModel,
                Skip            = skipAncm,
            });
        }
    }
コード例 #2
0
 private RuntimeFlavor GetRuntimeFlavor(string tfm)
 {
     if (Tfm.Matches(Tfm.Net462, tfm))
     {
         return(RuntimeFlavor.Clr);
     }
     return(RuntimeFlavor.CoreClr);
 }
コード例 #3
0
    private static string SkipIfTfmIsNotSupportedOnThisOS(string tfm)
    {
        if (Tfm.Matches(Tfm.Net462, tfm) && !OperatingSystem.IsWindows())
        {
            return("This TFM is not supported on this operating system.");
        }

        return(null);
    }
コード例 #4
0
    private void VaryByApplicationType(List <TestVariant> variants, ServerType server, string tfm, string skip)
    {
        foreach (var t in ApplicationTypes)
        {
            var type = t;
            if (Tfm.Matches(Tfm.Net462, tfm) && type == ApplicationType.Portable)
            {
                if (ApplicationTypes.Count == 1)
                {
                    // Override the default
                    type = ApplicationType.Standalone;
                }
                else
                {
                    continue;
                }
            }

            VaryByArchitecture(variants, server, tfm, skip, type);
        }
    }
コード例 #5
0
 private bool CheckTfmIsSupportedForServer(string tfm, ServerType server)
 {
     // Not a combination we test
     return(!(Tfm.Matches(Tfm.Net462, tfm) && ServerType.Nginx == server));
 }