32 writes to TcpPort
Microsoft.Extensions.Diagnostics.Probes (6)
KubernetesProbesExtensions.cs (3)
59
options.
TcpPort
= wrapperOptions.LivenessProbe.TcpPort;
76
options.
TcpPort
= wrapperOptions.StartupProbe.TcpPort;
93
options.
TcpPort
= wrapperOptions.ReadinessProbe.TcpPort;
KubernetesProbesOptions.cs (3)
23
TcpPort
= DefaultLivenessProbePort,
34
TcpPort
= DefaultStartupProbePort,
45
TcpPort
= DefaultReadinessProbePort,
Microsoft.Extensions.Diagnostics.Probes.Tests (26)
KubernetesProbesExtensionsTests.cs (3)
74
options.LivenessProbe.
TcpPort
= 1;
75
options.StartupProbe.
TcpPort
= 2;
76
options.ReadinessProbe.
TcpPort
= 3;
KubernetesProbesOptionsValidatorTests.cs (21)
28
options.LivenessProbe.
TcpPort
= 2305;
29
options.StartupProbe.
TcpPort
= 2306;
30
options.ReadinessProbe.
TcpPort
= 2307;
41
options.LivenessProbe.
TcpPort
= 2305;
42
options.StartupProbe.
TcpPort
= 2305;
43
options.ReadinessProbe.
TcpPort
= 2307;
49
options.LivenessProbe.
TcpPort
= 2305;
50
options.StartupProbe.
TcpPort
= 2306;
51
options.ReadinessProbe.
TcpPort
= 2305;
55
options.LivenessProbe.
TcpPort
= 2305;
56
options.StartupProbe.
TcpPort
= 2306;
57
options.ReadinessProbe.
TcpPort
= 2306;
61
options.LivenessProbe.
TcpPort
= 2305;
62
options.StartupProbe.
TcpPort
= 2305;
63
options.ReadinessProbe.
TcpPort
= 2305;
75
options.LivenessProbe.
TcpPort
= 22305;
76
options.StartupProbe.
TcpPort
= 22306;
77
options.ReadinessProbe.
TcpPort
= 22307;
106
options.LivenessProbe.
TcpPort
= 22305;
107
options.StartupProbe.
TcpPort
= 22305;
108
options.ReadinessProbe.
TcpPort
= 22307;
TcpEndpointProbesServiceTests.cs (2)
29
TcpPort
= port,
78
TcpPort
= port,
21 references to TcpPort
Microsoft.Extensions.Diagnostics.Probes (10)
KubernetesProbesExtensions.cs (3)
59
options.TcpPort = wrapperOptions.LivenessProbe.
TcpPort
;
76
options.TcpPort = wrapperOptions.StartupProbe.
TcpPort
;
93
options.TcpPort = wrapperOptions.ReadinessProbe.
TcpPort
;
KubernetesProbesOptionsValidator.cs (6)
14
if (options.LivenessProbe.
TcpPort
== options.StartupProbe.
TcpPort
15
|| options.LivenessProbe.
TcpPort
== options.ReadinessProbe.
TcpPort
16
|| options.StartupProbe.
TcpPort
== options.ReadinessProbe.
TcpPort
)
TcpEndpointProbesService.cs (1)
36
_listener = new TcpListener(IPAddress.Any, _options.
TcpPort
);
Microsoft.Extensions.Diagnostics.Probes.Tests (11)
KubernetesProbesExtensionsTests.cs (9)
52
Assert.Equal(2305, livenessConfig.
TcpPort
);
58
Assert.Equal(2306, startupConfig.
TcpPort
);
64
Assert.Equal(2307, readinessConfig.
TcpPort
);
86
Assert.Equal(1, config.Get(ProbeTags.Liveness).
TcpPort
);
87
Assert.Equal(2, config.Get(ProbeTags.Startup).
TcpPort
);
88
Assert.Equal(3, config.Get(ProbeTags.Readiness).
TcpPort
);
114
Assert.Equal(1, config.Get(ProbeTags.Liveness).
TcpPort
);
115
Assert.Equal(2, config.Get(ProbeTags.Startup).
TcpPort
);
116
Assert.Equal(3, config.Get(ProbeTags.Readiness).
TcpPort
);
TcpEndpointProbesExtensionsTests.cs (2)
123
Assert.Equal(1234, configuration.Value.
TcpPort
);
150
Assert.Equal(1234, configuration.Get("Liveness").
TcpPort
);