Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
SecurityContextTokenHandle.cs
Go to the documentation of this file.
1
using
System.Threading
;
2
using
Microsoft.Win32.SafeHandles
;
3
4
namespace
System.Net.Security
;
5
6
internal
sealed
class
SecurityContextTokenHandle :
CriticalHandleZeroOrMinusOneIsInvalid
7
{
8
private
int
_disposed
;
9
10
internal
IntPtr
DangerousGetHandle
()
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
}
Microsoft.Win32.SafeHandles.CriticalHandleZeroOrMinusOneIsInvalid.IsInvalid
override bool IsInvalid
Definition
CriticalHandleZeroOrMinusOneIsInvalid.cs:9
Microsoft.Win32.SafeHandles.CriticalHandleZeroOrMinusOneIsInvalid
Definition
CriticalHandleZeroOrMinusOneIsInvalid.cs:7
System.Net.Security.SecurityContextTokenHandle._disposed
int _disposed
Definition
SecurityContextTokenHandle.cs:8
System.Net.Security.SecurityContextTokenHandle.DangerousGetHandle
IntPtr DangerousGetHandle()
Definition
SecurityContextTokenHandle.cs:10
System.Net.Security.SecurityContextTokenHandle.ReleaseHandle
override bool ReleaseHandle()
Definition
SecurityContextTokenHandle.cs:15
System.Runtime.InteropServices.CriticalHandle.handle
IntPtr handle
Definition
CriticalHandle.cs:7
System.Threading.Interlocked.Increment
static int Increment(ref int location)
Definition
Interlocked.cs:10
System.Threading.Interlocked
Definition
Interlocked.cs:9
Microsoft.Win32.SafeHandles
Definition
SafeProcessHandle.cs:3
System.Net.Security
Definition
CertificateHelper.cs:4
System.Threading
Definition
TaskToApm.cs:3
System.IntPtr
Definition
IntPtr.cs:14
source
System.Net.Security
System.Net.Security
SecurityContextTokenHandle.cs
Generated by
1.10.0