50 references to ServerType
Microsoft.AspNetCore.Server.IntegrationTesting (50)
Common\DeploymentParameters.cs (2)
51ServerType serverType, 98public ServerType ServerType { get; set; }
Common\TestUriHelper.cs (6)
10public static Uri BuildTestUri(ServerType serverType) 15public static Uri BuildTestUri(ServerType serverType, string hint) 18var statusMessagesEnabled = (serverType == ServerType.Kestrel); 23internal static Uri BuildTestUri(ServerType serverType, string scheme, string hint, bool statusMessagesEnabled) 27if (serverType == ServerType.Kestrel && statusMessagesEnabled) 36else if (serverType == ServerType.HttpSys)
Common\TestUrlHelper.cs (1)
9public static string GetTestUrl(ServerType serverType)
Deployers\ApplicationDeployer.cs (1)
32if (DeploymentParameters.ServerType == ServerType.None)
Deployers\ApplicationDeployerFactory.cs (5)
27case ServerType.IISExpress: 28case ServerType.IIS: 30case ServerType.HttpSys: 31case ServerType.Kestrel: 33case ServerType.Nginx:
Deployers\NginxDeployer.cs (1)
56var redirectUri = TestUriHelper.BuildTestUri(ServerType.Nginx);
Deployers\RemoteWindowsDeployer\RemoteWindowsDeployer.cs (7)
29if (_deploymentParameters.ServerType != ServerType.IIS 30&& _deploymentParameters.ServerType != ServerType.Kestrel 31&& _deploymentParameters.ServerType != ServerType.HttpSys) 34$" Supported server types are {nameof(ServerType.Kestrel)}, {nameof(ServerType.IIS)} and {nameof(ServerType.HttpSys)}"); 85if (_deploymentParameters.ServerType == ServerType.IIS)
Deployers\RemoteWindowsDeployer\RemoteWindowsDeploymentParameters.cs (1)
11ServerType serverType,
Deployers\SelfHostDeployer.cs (1)
115var server = DeploymentParameters.ServerType == ServerType.HttpSys
TestMatrix.cs (20)
11public IList<ServerType> Servers { get; set; } = new List<ServerType>(); 21public static TestMatrix ForServers(params ServerType[] types) 135foreach (var server in Servers) 143private static string SkipIfServerIsNotSupportedOnThisOS(ServerType server) 148case ServerType.IIS: 149case ServerType.IISExpress: 150case ServerType.HttpSys: 153case ServerType.Kestrel: 155case ServerType.Nginx: 166private void VaryByTfm(List<TestVariant> variants, ServerType server, string skip) 182private static bool CheckTfmIsSupportedForServer(string tfm, ServerType server) 185return !(Tfm.Matches(Tfm.Net462, tfm) && ServerType.Nginx == server); 198private void VaryByApplicationType(List<TestVariant> variants, ServerType server, string tfm, string skip) 220private void VaryByArchitecture(List<TestVariant> variants, ServerType server, string tfm, string skip, ApplicationType type) 230if (server == ServerType.IISExpress || server == ServerType.IIS) 261private static bool IsArchitectureSupportedOnServer(RuntimeArchitecture arch, ServerType server) 264return !(arch == RuntimeArchitecture.x86 && ServerType.Nginx == server); 267private void VaryByAncmHostingModel(IList<TestVariant> variants, ServerType server, string tfm, ApplicationType type, RuntimeArchitecture arch, string skip)
TestVariant.cs (5)
10public ServerType Server { get; set; } 24if (Server == ServerType.IISExpress || Server == ServerType.IIS) 34info.AddValue(nameof(Server), Server, typeof(ServerType)); 44Server = info.GetValue<ServerType>(nameof(Server));