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

◆ Match()

bool System.Net.CredentialKey.Match ( Uri uri,
string authenticationType )
inlinepackage

Definition at line 22 of file CredentialKey.cs.

23 {
24 if (uri == null || authenticationType == null)
25 {
26 return false;
27 }
28 if (!string.Equals(authenticationType, AuthenticationType, StringComparison.OrdinalIgnoreCase))
29 {
30 return false;
31 }
32 if (NetEventSource.Log.IsEnabled())
33 {
34 NetEventSource.Info(this, $"Match({UriPrefix} & {uri})", "Match");
35 }
36 return IsPrefix(uri, UriPrefix);
37 }
readonly string AuthenticationType
static bool IsPrefix(Uri uri, Uri prefixUri)

References System.Net.CredentialKey.AuthenticationType, System.Net.Equals, System.Net.NetEventSource.Info(), System.Net.CredentialKey.IsPrefix(), System.Net.NetEventSource.Log, and System.Net.CredentialKey.UriPrefix.