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
HttpListener.cs
Go to the documentation of this file.
1using System;
3using System.IO;
10using Cpp2IlInjected;
14
15namespace System.Net
16{
17 // Token: 0x02000249 RID: 585
18 public sealed class HttpListener : IDisposable
19 {
20 // Token: 0x06000EC8 RID: 3784 RVA: 0x0002F268 File Offset: 0x0002D468
27
28 // Token: 0x06000EC9 RID: 3785 RVA: 0x0002F28C File Offset: 0x0002D48C
30 {
31 int num = 1;
32 object internalLock = this._internalLock;
33 if (this.certificate != null)
34 {
35 }
36 if (num == 0)
37 {
38 }
39 string text2;
40 string text = Path.Combine(Path.Combine(text2, ".mono"), "httplistener");
41 string text3;
42 bool flag = File.Exists(Path.Combine(text, text3));
43 if ("{0}.pvk" == null)
44 {
45 }
46 string text5;
47 string text4 = Path.Combine(text, text5);
48 bool flag2 = File.Exists(text4);
50 global::System.Security.Cryptography.X509Certificates.X509Certificate2Impl x509Certificate2Impl;
51 if (x509Certificate2Impl != null)
52 {
53 }
54 long num2 = 0L;
56 if (num2 == 0L)
57 {
58 }
59 throw new OutOfMemoryException();
60 }
61
62 // Token: 0x06000ECA RID: 3786 RVA: 0x0002F33C File Offset: 0x0002D53C
63 internal global::System.Net.Security.SslStream CreateSslStream(Stream innerStream, bool ownsStream, global::System.Net.Security.RemoteCertificateValidationCallback callback)
64 {
65 object internalLock;
66 do
67 {
69 if (this.tlsProvider == null)
70 {
72 this.tlsProvider = provider;
73 }
74 }
75 while (this.tlsSettings != null);
80 long num = 0L;
82 if (num == 0L)
83 {
84 }
85 throw new OutOfMemoryException();
86 }
87
88 // Token: 0x06000ECB RID: 3787 RVA: 0x0002F3C4 File Offset: 0x0002D5C4
95
96 // Token: 0x17000310 RID: 784
97 // (get) Token: 0x06000ECC RID: 3788 RVA: 0x0002F3EC File Offset: 0x0002D5EC
98 // (set) Token: 0x06000ECD RID: 3789 RVA: 0x0002F400 File Offset: 0x0002D600
100 {
101 get
102 {
103 return this.auth_schemes;
104 }
105 set
106 {
107 this.CheckDisposed();
109 }
110 }
111
112 // Token: 0x17000311 RID: 785
113 // (get) Token: 0x06000ECE RID: 3790 RVA: 0x0002F41C File Offset: 0x0002D61C
114 // (set) Token: 0x06000ECF RID: 3791 RVA: 0x0002F430 File Offset: 0x0002D630
116 {
117 get
118 {
119 return this.auth_selector;
120 }
121 set
122 {
123 this.CheckDisposed();
125 }
126 }
127
128 // Token: 0x17000312 RID: 786
129 // (get) Token: 0x06000ED0 RID: 3792 RVA: 0x0002F44C File Offset: 0x0002D64C
130 // (set) Token: 0x06000ED1 RID: 3793 RVA: 0x0002F460 File Offset: 0x0002D660
132 {
133 get
134 {
136 }
137 set
138 {
139 /*
140An exception occurred when decompiling this method (06000ED1)
141
142ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void System.Net.HttpListener::set_ExtendedProtectionSelectorDelegate(System.Net.HttpListener/ExtendedProtectionSelector)
143
144 ---> System.Exception: Basic block has to end with unconditional control flow.
145{
146 IL_0009:
147 stloc:string(var_0_13, call:string(SR::GetString, ldstr:string("This operation requires OS support for extended protection.")))
148}
149
150 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
151 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
152 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
153 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
154 --- End of inner exception stack trace ---
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 92
156 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
157*/;
158 }
159 }
160
161 // Token: 0x17000313 RID: 787
162 // (get) Token: 0x06000ED2 RID: 3794 RVA: 0x0002F480 File Offset: 0x0002D680
163 // (set) Token: 0x06000ED3 RID: 3795 RVA: 0x0002F494 File Offset: 0x0002D694
165 {
166 get
167 {
168 return this.ignore_write_exceptions;
169 }
170 set
171 {
172 this.CheckDisposed();
173 }
174 }
175
176 // Token: 0x17000314 RID: 788
177 // (get) Token: 0x06000ED4 RID: 3796 RVA: 0x0002F4A8 File Offset: 0x0002D6A8
178 public bool IsListening
179 {
180 get
181 {
182 return this.listening;
183 }
184 }
185
186 // Token: 0x17000315 RID: 789
187 // (get) Token: 0x06000ED5 RID: 3797 RVA: 0x0002F4BC File Offset: 0x0002D6BC
188 public static bool IsSupported
189 {
190 get
191 {
192 return true;
193 }
194 }
195
196 // Token: 0x17000316 RID: 790
197 // (get) Token: 0x06000ED6 RID: 3798 RVA: 0x0002F4CC File Offset: 0x0002D6CC
199 {
200 get
201 {
202 this.CheckDisposed();
203 return this.prefixes;
204 }
205 }
206
207 // Token: 0x17000317 RID: 791
208 // (get) Token: 0x06000ED7 RID: 3799 RVA: 0x00002050 File Offset: 0x00000250
209 [MonoTODO]
211 {
212 get
213 {
214 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
215 }
216 }
217
218 // Token: 0x17000318 RID: 792
219 // (get) Token: 0x06000ED8 RID: 3800 RVA: 0x0002F4E8 File Offset: 0x0002D6E8
220 // (set) Token: 0x06000ED9 RID: 3801 RVA: 0x0002F4FC File Offset: 0x0002D6FC
221 [MonoTODO("not used anywhere in the implementation")]
222 public global::System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy ExtendedProtectionPolicy
223 {
224 get
225 {
226 return this.extendedProtectionPolicy;
227 }
228 set
229 {
230 do
231 {
232 this.CheckDisposed();
233 if (value == null)
234 {
235 goto IL_0020;
236 }
237 global::System.Security.Authentication.ExtendedProtection.PolicyEnforcement policyEnforcement = value.PolicyEnforcement;
238 }
239 while (value.CustomChannelBinding != null);
241 return;
242 IL_0020:
243 string @string = SR.GetString("This operation requires OS support for extended protection.");
244 }
245 }
246
247 // Token: 0x17000319 RID: 793
248 // (get) Token: 0x06000EDA RID: 3802 RVA: 0x0002F534 File Offset: 0x0002D734
249 public global::System.Security.Authentication.ExtendedProtection.ServiceNameCollection DefaultServiceNames
250 {
251 get
252 {
254 }
255 }
256
257 // Token: 0x1700031A RID: 794
258 // (get) Token: 0x06000EDB RID: 3803 RVA: 0x0002F54C File Offset: 0x0002D74C
259 // (set) Token: 0x06000EDC RID: 3804 RVA: 0x0002F560 File Offset: 0x0002D760
260 public string Realm
261 {
262 get
263 {
264 return this.realm;
265 }
266 set
267 {
268 this.CheckDisposed();
270 }
271 }
272
273 // Token: 0x1700031B RID: 795
274 // (get) Token: 0x06000EDD RID: 3805 RVA: 0x0002F57C File Offset: 0x0002D77C
275 // (set) Token: 0x06000EDE RID: 3806 RVA: 0x0002F590 File Offset: 0x0002D790
276 [MonoTODO("Support for NTLM needs some loving.")]
278 {
279 get
280 {
281 return this.unsafe_ntlm_auth;
282 }
283 set
284 {
285 this.CheckDisposed();
286 }
287 }
288
289 // Token: 0x06000EDF RID: 3807 RVA: 0x0002F5A4 File Offset: 0x0002D7A4
290 public void Abort()
291 {
292 while (!this.disposed)
293 {
294 if (this.listening)
295 {
296 this.Close(true);
297 return;
298 }
299 }
300 }
301
302 // Token: 0x06000EE0 RID: 3808 RVA: 0x0002F5CC File Offset: 0x0002D7CC
303 public void Close()
304 {
305 if (!this.disposed)
306 {
307 if (this.listening)
308 {
309 this.Close(true);
310 }
311 this.disposed = true;
312 }
313 }
314
315 // Token: 0x06000EE1 RID: 3809 RVA: 0x0002F5F8 File Offset: 0x0002D7F8
316 private void Close(bool force)
317 {
318 this.CheckDisposed();
319 if (!true)
320 {
321 }
323 this.Cleanup(force);
324 }
325
326 // Token: 0x06000EE2 RID: 3810 RVA: 0x0002F61C File Offset: 0x0002D81C
327 private void Cleanup(bool close_existing)
328 {
329 object internalLock = this._internalLock;
332 }
333
334 // Token: 0x06000EE3 RID: 3811 RVA: 0x0002F7F4 File Offset: 0x0002D9F4
336 {
337 this.CheckDisposed();
338 if (this.listening)
339 {
342 if (this.GetContextFromQueue() != null)
343 {
344 }
345 long num = 0L;
347 if (num != 0L)
348 {
349 throw new OutOfMemoryException();
350 }
351 if (7 == 0)
352 {
354 }
355 long num2 = 0L;
357 if (num2 == 0L)
358 {
359 }
360 }
361 throw new OutOfMemoryException();
362 }
363
364 // Token: 0x06000EE4 RID: 3812 RVA: 0x0002F878 File Offset: 0x0002DA78
366 {
367 this.CheckDisposed();
368 if (asyncResult != null)
369 {
370 long num = 0L;
372 Monitor.Enter(arrayList, num != 0L);
375 long num2 = 0L;
376 int num3 = 13;
378 if (num2 == 0L && num3 == 0)
379 {
381 if (authenticationSchemeSelector != null)
382 {
383 object[] items = arrayList._items;
384 IntPtr invoke_impl = authenticationSchemeSelector.invoke_impl;
385 IntPtr method_code = authenticationSchemeSelector.method_code;
386 IntPtr method = authenticationSchemeSelector.method;
387 }
389 }
390 }
391 throw new OutOfMemoryException();
392 }
393
394 // Token: 0x06000EE5 RID: 3813 RVA: 0x0002F920 File Offset: 0x0002DB20
396 {
397 /*
398An exception occurred when decompiling this method (06000EE5)
399
400ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Net.AuthenticationSchemes System.Net.HttpListener::SelectAuthenticationScheme(System.Net.HttpListenerContext)
401
402 ---> System.Exception: Basic block has to end with unconditional control flow.
403{
404 Block_0:
405 stloc:HttpListenerRequest(var_1_10, ldfld:HttpListenerRequest(HttpListenerContext::request, ldloc:HttpListenerContext(context)))
406 stloc:native int(var_2_17, ldfld:native int(Delegate::invoke_impl, ldloc:AuthenticationSchemeSelector[exp:Delegate](var_0_06)))
407 stloc:native int(var_3_1E, ldfld:native int(Delegate::method_code, ldloc:AuthenticationSchemeSelector[exp:Delegate](var_0_06)))
408 stloc:native int(var_4_25, ldfld:native int(Delegate::method, ldloc:AuthenticationSchemeSelector[exp:Delegate](var_0_06)))
409}
410
411 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
412 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
413 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
414 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
415 --- End of inner exception stack trace ---
416 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
417 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
418*/;
419 }
420
421 // Token: 0x06000EE6 RID: 3814 RVA: 0x0002F954 File Offset: 0x0002DB54
423 {
424 while (this.prefixes.prefixes._size == 0)
425 {
426 }
427 IAsyncResult asyncResult;
428 if (asyncResult != null)
429 {
430 }
431 return this.EndGetContext(asyncResult);
432 }
433
434 // Token: 0x06000EE7 RID: 3815 RVA: 0x0002F988 File Offset: 0x0002DB88
435 public void Start()
436 {
437 this.CheckDisposed();
438 if (!this.listening)
439 {
441 this.listening = true;
442 }
443 }
444
445 // Token: 0x06000EE8 RID: 3816 RVA: 0x0002F9B0 File Offset: 0x0002DBB0
446 public void Stop()
447 {
448 this.CheckDisposed();
449 long num = 0L;
450 this.Close(num != 0L);
451 }
452
453 // Token: 0x06000EE9 RID: 3817 RVA: 0x0002F9CC File Offset: 0x0002DBCC
455 {
456 if (!this.disposed)
457 {
458 this.Close(true);
459 this.disposed = true;
460 }
461 }
462
463 // Token: 0x06000EEA RID: 3818 RVA: 0x00002050 File Offset: 0x00000250
465 {
466 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
467 }
468
469 // Token: 0x06000EEB RID: 3819 RVA: 0x0002F9F0 File Offset: 0x0002DBF0
470 internal void CheckDisposed()
471 {
472 /*
473An exception occurred when decompiling this method (06000EEB)
474
475ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void System.Net.HttpListener::CheckDisposed()
476
477 ---> System.Exception: Basic block has to end with unconditional control flow.
478{
479 IL_0009:
480 stloc:Type(var_0_0F, call:Type(object::GetType, ldloc:HttpListener[exp:object](this)))
481}
482
483 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
484 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
485 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
486 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
487 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
488 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
489 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
490 --- End of inner exception stack trace ---
491 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
492 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
493*/;
494 }
495
496 // Token: 0x06000EEC RID: 3820 RVA: 0x0002FA0C File Offset: 0x0002DC0C
498 {
499 while (this.ctx_queue != null)
500 {
503 if (arrayList != null)
504 {
505 throw new InvalidCastException();
506 }
507 }
508 }
509
510 // Token: 0x06000EED RID: 3821 RVA: 0x0002FA3C File Offset: 0x0002DC3C
512 {
513 object internalLock = this._internalLock;
515 long num = 0L;
516 long num2 = 0L;
518 if (num != 0L)
519 {
520 throw new OutOfMemoryException();
521 }
525 long num3;
526 if (this.wait_queue != null)
527 {
528 arrayList2 = this.wait_queue;
529 if (arrayList2 != null)
530 {
531 }
533 num3 = 0L;
534 return;
535 }
537 long num4 = 0L;
538 int num5 = 4;
540 if (num4 != 0L)
541 {
542 throw new OutOfMemoryException();
543 }
544 while (num5 == 0)
545 {
546 }
547 long num6 = 0L;
548 long num7 = 0L;
550 if (num6 == 0L)
551 {
552 if (num7 != 0L)
553 {
554 }
555 return;
556 }
557 throw new OutOfMemoryException();
558 }
559
560 // Token: 0x06000EEE RID: 3822 RVA: 0x0002FB2C File Offset: 0x0002DD2C
562 {
563 object internalLock = this._internalLock;
565 long num = 0L;
566 long num2 = 0L;
568 if (num != 0L)
569 {
570 throw new OutOfMemoryException();
571 }
576 long num3 = 0L;
578 if (num3 == 0L)
579 {
580 return;
581 }
582 throw new OutOfMemoryException();
583 }
584
585 // Token: 0x06000EEF RID: 3823 RVA: 0x0002FBC4 File Offset: 0x0002DDC4
586 internal void AddConnection(HttpConnection cnc)
587 {
589 }
590
591 // Token: 0x06000EF0 RID: 3824 RVA: 0x0002FBD8 File Offset: 0x0002DDD8
593 {
595 }
596
597 // Token: 0x04000C15 RID: 3093
599
600 // Token: 0x04000C16 RID: 3094
602
603 // Token: 0x04000C17 RID: 3095
605
606 // Token: 0x04000C18 RID: 3096
608
609 // Token: 0x04000C19 RID: 3097
611
612 // Token: 0x04000C1A RID: 3098
614
615 // Token: 0x04000C1B RID: 3099
616 private string realm;
617
618 // Token: 0x04000C1C RID: 3100
620
621 // Token: 0x04000C1D RID: 3101
622 private bool unsafe_ntlm_auth;
623
624 // Token: 0x04000C1E RID: 3102
625 private bool listening;
626
627 // Token: 0x04000C1F RID: 3103
628 private bool disposed;
629
630 // Token: 0x04000C20 RID: 3104
631 private readonly object _internalLock;
632
633 // Token: 0x04000C21 RID: 3105
635
636 // Token: 0x04000C22 RID: 3106
638
639 // Token: 0x04000C23 RID: 3107
641
642 // Token: 0x04000C24 RID: 3108
644
645 // Token: 0x04000C25 RID: 3109
647
648 // Token: 0x04000C26 RID: 3110
649 private global::System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy extendedProtectionPolicy;
650
651 // Token: 0x04000C27 RID: 3111
653
654 // Token: 0x0200024A RID: 586
656 {
657 // Token: 0x06000EF1 RID: 3825 RVA: 0x0002FBEC File Offset: 0x0002DDEC
659 {
661 this.m_target = @object;
663 this.method_code = this;
664 }
665
666 // Token: 0x06000EF2 RID: 3826 RVA: 0x0002FC40 File Offset: 0x0002DE40
667 public global::System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy Invoke(HttpListenerRequest request)
668 {
669 /*
670An exception occurred when decompiling this method (06000EF2)
671
672ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy System.Net.HttpListener/ExtendedProtectionSelector::Invoke(System.Net.HttpListenerRequest)
673
674 ---> System.Exception: Basic block has to end with unconditional control flow.
675{
676 Block_0:
677 stloc:native int(var_0_06, ldfld:native int(Delegate::method_code, ldloc:ExtendedProtectionSelector[exp:Delegate](this)))
678 stloc:native int(var_1_0D, ldfld:native int(Delegate::invoke_impl, ldloc:ExtendedProtectionSelector[exp:Delegate](this)))
679 stloc:native int(var_2_14, ldfld:native int(Delegate::method, ldloc:ExtendedProtectionSelector[exp:Delegate](this)))
680}
681
682 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
683 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
684 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
685 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
686 --- End of inner exception stack trace ---
687 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
688 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
689*/;
690 }
691
692 // Token: 0x06000EF3 RID: 3827 RVA: 0x00002050 File Offset: 0x00000250
693 public IAsyncResult BeginInvoke(HttpListenerRequest request, AsyncCallback callback, object @object)
694 {
695 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
696 }
697
698 // Token: 0x06000EF4 RID: 3828 RVA: 0x00002050 File Offset: 0x00000250
699 public global::System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy EndInvoke(IAsyncResult result)
700 {
701 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
702 }
703 }
704 }
705}
class f__AnonymousType0<< Count > j__TPar
static MonoRemoteCertificateValidationCallback PublicToMono(global::System.Net.Security.RemoteCertificateValidationCallback callback)
static PrivateKey CreateFromFile(string filename)
static string GetString(string name, params object[] args)
Definition SR.cs:9
Definition SR.cs:7
static bool Exists(string path)
Definition File.cs:86
static string Combine(string path1, string path2)
Definition Path.cs:41
static void RemoveListener(HttpListener listener)
static void AddListener(HttpListener listener)
ExtendedProtectionSelector(object @object, IntPtr method)
global::System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy EndInvoke(IAsyncResult result)
global::System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy Invoke(HttpListenerRequest request)
IAsyncResult BeginInvoke(HttpListenerRequest request, AsyncCallback callback, object @object)
HttpListener.ExtendedProtectionSelector extendedProtectionSelectorDelegate
global::System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy extendedProtectionPolicy
void AddConnection(HttpConnection cnc)
X509Certificate certificate
AuthenticationSchemes auth_schemes
HttpListener(X509Certificate certificate, MonoTlsProvider tlsProvider, MonoTlsSettings tlsSettings)
AuthenticationSchemes SelectAuthenticationScheme(HttpListenerContext context)
HttpListenerTimeoutManager TimeoutManager
HttpListener.ExtendedProtectionSelector ExtendedProtectionSelectorDelegate
X509Certificate LoadCertificateAndKey(IPAddress addr, int port)
HttpListenerContext GetContext()
AuthenticationSchemeSelector AuthenticationSchemeSelectorDelegate
MonoTlsSettings tlsSettings
void RegisterContext(HttpListenerContext context)
void RemoveConnection(HttpConnection cnc)
readonly object _internalLock
void Close(bool force)
MonoTlsProvider tlsProvider
global::System.Net.Security.SslStream CreateSslStream(Stream innerStream, bool ownsStream, global::System.Net.Security.RemoteCertificateValidationCallback callback)
HttpListenerPrefixCollection Prefixes
void Cleanup(bool close_existing)
global::System.Security.Authentication.ExtendedProtection.ServiceNameCollection DefaultServiceNames
HttpListenerPrefixCollection prefixes
HttpListenerContext GetContextFromQueue()
Task< HttpListenerContext > GetContextAsync()
ServiceNameStore defaultServiceNames
HttpListenerContext EndGetContext(IAsyncResult asyncResult)
AuthenticationSchemeSelector auth_selector
void UnregisterContext(HttpListenerContext context)
IAsyncResult BeginGetContext(AsyncCallback callback, object state)
global::System.Security.Authentication.ExtendedProtection.ServiceNameCollection ServiceNames
static void Exit(object obj)
Definition Monitor.cs:47
static void Enter(object obj)
Definition Monitor.cs:11