Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ UsePortInSpn

bool System.Net.Http.AuthenticationHelper.UsePortInSpn
staticgetprivate

Definition at line 187 of file AuthenticationHelper.cs.

188 {
189 get
190 {
191 int num = s_usePortInSpn;
192 if (num != -1)
193 {
194 return num != 0;
195 }
196 if (AppContext.TryGetSwitch("System.Net.Http.UsePortInSpn", out var isEnabled))
197 {
198 s_usePortInSpn = (isEnabled ? 1 : 0);
199 }
200 else
201 {
202 string environmentVariable = Environment.GetEnvironmentVariable("DOTNET_SYSTEM_NET_HTTP_USEPORTINSPN");
203 s_usePortInSpn = ((environmentVariable != null && (environmentVariable == "1" || environmentVariable.Equals("true", StringComparison.OrdinalIgnoreCase))) ? 1 : 0);
204 }
205 return s_usePortInSpn != 0;
206 }
207 }

Referenced by System.Net.Http.AuthenticationHelper.SendWithNtAuthAsync().