Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
SecurityContextTokenHandle.cs
Go to the documentation of this file.
3
4namespace System.Net.Security;
5
6internal sealed class SecurityContextTokenHandle : CriticalHandleZeroOrMinusOneIsInvalid
7{
8 private int _disposed;
9
11 {
12 return handle;
13 }
14
15 protected override bool ReleaseHandle()
16 {
17 if (!IsInvalid && Interlocked.Increment(ref _disposed) == 1)
18 {
19 return global::Interop.Kernel32.CloseHandle(handle);
20 }
21 return true;
22 }
23}
static int Increment(ref int location)