using System; using System.Reflection; using System.Runtime.InteropServices; using Cpp2IlInjected; namespace BestHTTP { // Token: 0x020012AE RID: 4782 [Token(Token = "0x20012AE")] [StructLayout(3, Size = 8)] public sealed class OnBeforeRedirectionDelegate : MulticastDelegate { // Token: 0x0600771D RID: 30493 RVA: 0x0018AC24 File Offset: 0x00188E24 [Token(Token = "0x600771D")] [Address(RVA = "0x3E5170", Offset = "0x3E3B70", VA = "0x1803E5170")] public OnBeforeRedirectionDelegate(object @object, IntPtr method) { this.method = method; this.m_target = @object; } // Token: 0x0600771E RID: 30494 RVA: 0x0018AC40 File Offset: 0x00188E40 [Token(Token = "0x600771E")] [Address(RVA = "0xDE2690", Offset = "0xDE1090", VA = "0x180DE2690", Slot = "13")] public bool Invoke(HTTPRequest originalRequest, HTTPResponse response, Uri redirectUri) { Delegate[] delegates = this.delegates; if (delegates != 0) { } int num = 0; uint num2; if (num2 == (uint)0) { return; } Delegate @delegate = delegates[1]; Delegate delegate2 = delegates[0]; uint num3; if (@delegate.method_info == num3) { throw new ExecutionEngineException(); } ExecutionEngineException ex; if (ex == 0 || @delegate == (ulong)3L) { MethodInfo method_info = @delegate.method_info; MethodInfo methodInfo; if (originalRequest != (ulong)3L) { uint num4; if (method_info != num4) { if (delegate2 != 0) { } methodInfo = @delegate.method_info; int num5 = 0; if (num5 < redirectUri) { num5 += num5; if (num5 != redirectUri) { num5++; } } num5 += methodInfo; num5 += 19; methodInfo += methodInfo; int num6 = 0; num6 += num6; num6++; num6 += methodInfo; num6 += 19; } if (methodInfo != 0 || methodInfo == 0) { goto IL_CE; } } if (methodInfo == null) { goto IL_116; } if (methodInfo != 0) { } if (methodInfo == 0) { } IL_CE: int num7 = 0; if (num7 < redirectUri) { num7 += num7; if (num7 != redirectUri) { num7++; } } num7 += this; num7 += 19; int num8 = 0; if (num8 < redirectUri) { num8 += num8; if (num8 != redirectUri) { num8++; } } num8 += 19; IL_116: if (methodInfo != 0 || num8 != 0) { } } num++; } // Token: 0x0600771F RID: 30495 RVA: 0x0000220F File Offset: 0x0000040F [Token(Token = "0x600771F")] [Address(RVA = "0x438D50", Offset = "0x437750", VA = "0x180438D50", Slot = "14")] public IAsyncResult BeginInvoke(HTTPRequest originalRequest, HTTPResponse response, Uri redirectUri, AsyncCallback callback, object @object) { throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method."); } // Token: 0x06007720 RID: 30496 RVA: 0x0018AD74 File Offset: 0x00188F74 [Token(Token = "0x6007720")] [Address(RVA = "0x433E40", Offset = "0x432840", VA = "0x180433E40", Slot = "15")] public bool EndInvoke(IAsyncResult result) { throw new NullReferenceException(); } } }