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