terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
HttpListenerContext.cs
Go to the documentation of this file.
1using System;
6
7namespace System.Net
8{
9 // Token: 0x0200024C RID: 588
10 public sealed class HttpListenerContext
11 {
12 // Token: 0x06000EF7 RID: 3831 RVA: 0x0002FC98 File Offset: 0x0002DE98
14 {
15 this.err_status = 400;
16 base..ctor();
17 this.cnc = cnc;
18 }
19
20 // Token: 0x1700031D RID: 797
21 // (get) Token: 0x06000EF8 RID: 3832 RVA: 0x0002FCC0 File Offset: 0x0002DEC0
22 // (set) Token: 0x06000EF9 RID: 3833 RVA: 0x0002FCD4 File Offset: 0x0002DED4
23 internal int ErrorStatus
24 {
25 get
26 {
27 return this.err_status;
28 }
29 set
30 {
32 }
33 }
34
35 // Token: 0x1700031E RID: 798
36 // (get) Token: 0x06000EFA RID: 3834 RVA: 0x0002FCE8 File Offset: 0x0002DEE8
37 // (set) Token: 0x06000EFB RID: 3835 RVA: 0x0002FCFC File Offset: 0x0002DEFC
38 internal string ErrorMessage
39 {
40 get
41 {
42 return this.error;
43 }
44 set
45 {
47 }
48 }
49
50 // Token: 0x1700031F RID: 799
51 // (get) Token: 0x06000EFC RID: 3836 RVA: 0x0002FD10 File Offset: 0x0002DF10
52 internal bool HaveError
53 {
54 get
55 {
56 /*
57An exception occurred when decompiling this method (06000EFC)
58
59ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Net.HttpListenerContext::get_HaveError()
60
61 ---> System.Exception: Basic block has to end with unconditional control flow.
62{
63 Block_0:
64 stloc:string(var_0_06, ldfld:string(HttpListenerContext::error, ldloc:HttpListenerContext(this)))
65}
66
67 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
68 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
69 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
70 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
71 --- End of inner exception stack trace ---
72 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
73 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
74*/;
75 }
76 }
77
78 // Token: 0x17000320 RID: 800
79 // (get) Token: 0x06000EFD RID: 3837 RVA: 0x0002FD24 File Offset: 0x0002DF24
81 {
82 get
83 {
84 return this.cnc;
85 }
86 }
87
88 // Token: 0x17000321 RID: 801
89 // (get) Token: 0x06000EFE RID: 3838 RVA: 0x0002FD38 File Offset: 0x0002DF38
91 {
92 get
93 {
94 return this.request;
95 }
96 }
97
98 // Token: 0x17000322 RID: 802
99 // (get) Token: 0x06000EFF RID: 3839 RVA: 0x0002FD4C File Offset: 0x0002DF4C
101 {
102 get
103 {
104 return this.response;
105 }
106 }
107
108 // Token: 0x17000323 RID: 803
109 // (get) Token: 0x06000F00 RID: 3840 RVA: 0x0002FD60 File Offset: 0x0002DF60
111 {
112 get
113 {
114 return this.user;
115 }
116 }
117
118 // Token: 0x06000F01 RID: 3841 RVA: 0x0002FD74 File Offset: 0x0002DF74
120 {
121 string text = this.request.headers["Authorization"];
122 if (text != null)
123 {
124 int stringLength = text._stringLength;
125 string[] array;
126 if (string.Compare(array, "basic", true) == 0)
127 {
128 IPrincipal principal;
129 this.user = principal;
130 }
131 }
132 }
133
134 // Token: 0x06000F02 RID: 3842 RVA: 0x0002FDB8 File Offset: 0x0002DFB8
136 {
137 /*
138An exception occurred when decompiling this method (06000F02)
139
140ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Security.Principal.IPrincipal System.Net.HttpListenerContext::ParseBasicAuthentication(System.String)
141
142 ---> System.Exception: Basic block has to end with unconditional control flow.
143{
144 Block_0:
145 stloc:Encoding(var_1_07, callgetter:Encoding(Encoding::get_Default))
146 stloc:uint8[](var_2_0E, call:uint8[](Convert::FromBase64String, ldloc:string(authData)))
147 stloc:int32(var_8_17, ldc.i4:int32(92))
148 stloc:int32(var_9_22, call:int32(string::IndexOf, ldloc:string(var_7), ldloc:int32[exp:char](var_8_17)))
149 stloc:string(var_10_2D, call:string(string::Substring, ldloc:string(var_7), ldloc:int32(var_9_22)))
150}
151
152 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
153 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
154 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
155 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
156 --- End of inner exception stack trace ---
157 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
158 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
159*/;
160 }
161
162 // Token: 0x06000F03 RID: 3843 RVA: 0x00002050 File Offset: 0x00000250
163 [MonoTODO]
164 public Task<global::System.Net.WebSockets.HttpListenerWebSocketContext> AcceptWebSocketAsync(string subProtocol)
165 {
166 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
167 }
168
169 // Token: 0x06000F04 RID: 3844 RVA: 0x00002050 File Offset: 0x00000250
170 [MonoTODO]
171 public Task<global::System.Net.WebSockets.HttpListenerWebSocketContext> AcceptWebSocketAsync(string subProtocol, TimeSpan keepAliveInterval)
172 {
173 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
174 }
175
176 // Token: 0x06000F05 RID: 3845 RVA: 0x00002050 File Offset: 0x00000250
177 [MonoTODO]
178 public Task<global::System.Net.WebSockets.HttpListenerWebSocketContext> AcceptWebSocketAsync(string subProtocol, int receiveBufferSize, TimeSpan keepAliveInterval)
179 {
180 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
181 }
182
183 // Token: 0x06000F06 RID: 3846 RVA: 0x00002050 File Offset: 0x00000250
184 [MonoTODO]
185 public Task<global::System.Net.WebSockets.HttpListenerWebSocketContext> AcceptWebSocketAsync(string subProtocol, int receiveBufferSize, TimeSpan keepAliveInterval, ArraySegment<byte> internalBuffer)
186 {
187 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
188 }
189
190 // Token: 0x06000F07 RID: 3847 RVA: 0x0002FDFC File Offset: 0x0002DFFC
192 {
193 throw new NotSupportedException();
194 }
195
196 // Token: 0x04000C29 RID: 3113
198
199 // Token: 0x04000C2A RID: 3114
201
202 // Token: 0x04000C2B RID: 3115
204
205 // Token: 0x04000C2C RID: 3116
207
208 // Token: 0x04000C2D RID: 3117
209 private string error;
210
211 // Token: 0x04000C2E RID: 3118
212 private int err_status;
213
214 // Token: 0x04000C2F RID: 3119
216 }
217}
class f__AnonymousType0<< Count > j__TPar
HttpListenerContext(HttpConnection cnc)
Task< global::System.Net.WebSockets.HttpListenerWebSocketContext > AcceptWebSocketAsync(string subProtocol, int receiveBufferSize, TimeSpan keepAliveInterval, ArraySegment< byte > internalBuffer)
void ParseAuthentication(AuthenticationSchemes expectedSchemes)
Task< global::System.Net.WebSockets.HttpListenerWebSocketContext > AcceptWebSocketAsync(string subProtocol, TimeSpan keepAliveInterval)
Task< global::System.Net.WebSockets.HttpListenerWebSocketContext > AcceptWebSocketAsync(string subProtocol, int receiveBufferSize, TimeSpan keepAliveInterval)
Task< global::System.Net.WebSockets.HttpListenerWebSocketContext > AcceptWebSocketAsync(string subProtocol)
IPrincipal ParseBasicAuthentication(string authData)