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

◆ CreateShutdownToken()

ProtocolToken System.Net.Security.SecureChannel.CreateShutdownToken ( )
inline

Definition at line 783 of file SecureChannel.cs.

784 {
785 SecurityStatusPal securityStatusPal = SslStreamPal.ApplyShutdownToken(ref _credentialsHandle, _securityContext);
787 {
788 if (System.Net.NetEventSource.Log.IsEnabled())
789 {
790 System.Net.NetEventSource.Info(this, $"ApplyAlertToken() returned {securityStatusPal.ErrorCode}", "CreateShutdownToken");
791 }
792 if (securityStatusPal.Exception != null)
793 {
795 }
796 return null;
797 }
798 return GenerateAlertToken();
799 }
static readonly System.Net.NetEventSource Log
static void Info(object thisOrContextObject, FormattableString formattableString=null, [CallerMemberName] string memberName=null)
SafeDeleteSslContext _securityContext
SafeFreeCredentials _credentialsHandle

References System.Net.Security.SecureChannel._credentialsHandle, System.Net.Security.SecureChannel._securityContext, System.Net.Security.SslStreamPal.ApplyShutdownToken(), System.Net.Security.SecureChannel.GenerateAlertToken(), System.Net.NetEventSource.Info(), System.Net.NetEventSource.Log, and System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw().

Referenced by System.Net.Security.SslStream.ShutdownAsync().