Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
HttpServerSessionHandle.cs
Go to the documentation of this file.
2
3namespace System.Net;
4
6{
7 private readonly ulong _serverSessionId;
8
9 internal HttpServerSessionHandle(ulong id)
10 : base(ownsHandle: true)
11 {
13 SetHandle(new IntPtr(1));
14 }
15
17 {
18 return _serverSessionId;
19 }
20
21 protected override bool ReleaseHandle()
22 {
23 return global::Interop.HttpApi.HttpCloseServerSession(_serverSessionId) == 0;
24 }
25}