scripts
This commit is contained in:
+201
@@ -0,0 +1,201 @@
|
||||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SignalRCore.Messages;
|
||||
using BestHTTP.WebSocket;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SignalRCore.Authentication
|
||||
{
|
||||
// Token: 0x0200131A RID: 4890
|
||||
[Token(Token = "0x200131A")]
|
||||
[StructLayout(3)]
|
||||
public sealed class DefaultAccessTokenAuthenticator : IAuthenticationProvider
|
||||
{
|
||||
// Token: 0x170013F3 RID: 5107
|
||||
// (get) Token: 0x06007A76 RID: 31350 RVA: 0x00197160 File Offset: 0x00195360
|
||||
[Token(Token = "0x170013F3")]
|
||||
public bool IsPreAuthRequired
|
||||
{
|
||||
[Token(Token = "0x6007A76")]
|
||||
[Address(RVA = "0x413970", Offset = "0x412370", VA = "0x180413970", Slot = "4")]
|
||||
get
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x140000B6 RID: 182
|
||||
// (add) Token: 0x06007A77 RID: 31351 RVA: 0x00197170 File Offset: 0x00195370
|
||||
// (remove) Token: 0x06007A78 RID: 31352 RVA: 0x00197198 File Offset: 0x00195398
|
||||
[Token(Token = "0x140000B6")]
|
||||
public event OnAuthenticationSuccededDelegate OnAuthenticationSucceded
|
||||
{
|
||||
[Token(Token = "0x6007A77")]
|
||||
[Address(RVA = "0x52A2A0", Offset = "0x528CA0", VA = "0x18052A2A0", Slot = "5")]
|
||||
[CompilerGenerated]
|
||||
add
|
||||
{
|
||||
OnAuthenticationSuccededDelegate onAuthenticationSucceded;
|
||||
Delegate @delegate;
|
||||
do
|
||||
{
|
||||
onAuthenticationSucceded = this.OnAuthenticationSucceded;
|
||||
@delegate = Delegate.Combine(onAuthenticationSucceded, value);
|
||||
}
|
||||
while (@delegate != 0 && @delegate == 0);
|
||||
while (@delegate != onAuthenticationSucceded)
|
||||
{
|
||||
}
|
||||
}
|
||||
[Token(Token = "0x6007A78")]
|
||||
[Address(RVA = "0x52A3E0", Offset = "0x528DE0", VA = "0x18052A3E0", Slot = "6")]
|
||||
[CompilerGenerated]
|
||||
remove
|
||||
{
|
||||
OnAuthenticationSuccededDelegate onAuthenticationSucceded;
|
||||
Delegate @delegate;
|
||||
do
|
||||
{
|
||||
onAuthenticationSucceded = this.OnAuthenticationSucceded;
|
||||
@delegate = Delegate.Remove(onAuthenticationSucceded, value);
|
||||
}
|
||||
while (@delegate != 0 && @delegate == 0);
|
||||
while (@delegate != onAuthenticationSucceded)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x140000B7 RID: 183
|
||||
// (add) Token: 0x06007A79 RID: 31353 RVA: 0x001971C0 File Offset: 0x001953C0
|
||||
// (remove) Token: 0x06007A7A RID: 31354 RVA: 0x001971E8 File Offset: 0x001953E8
|
||||
[Token(Token = "0x140000B7")]
|
||||
public event OnAuthenticationFailedDelegate OnAuthenticationFailed
|
||||
{
|
||||
[Token(Token = "0x6007A79")]
|
||||
[Address(RVA = "0x52A200", Offset = "0x528C00", VA = "0x18052A200", Slot = "7")]
|
||||
[CompilerGenerated]
|
||||
add
|
||||
{
|
||||
OnAuthenticationFailedDelegate onAuthenticationFailed;
|
||||
Delegate @delegate;
|
||||
do
|
||||
{
|
||||
onAuthenticationFailed = this.OnAuthenticationFailed;
|
||||
@delegate = Delegate.Combine(onAuthenticationFailed, value);
|
||||
}
|
||||
while (@delegate != 0 && @delegate == 0);
|
||||
while (@delegate != onAuthenticationFailed)
|
||||
{
|
||||
}
|
||||
}
|
||||
[Token(Token = "0x6007A7A")]
|
||||
[Address(RVA = "0x52A340", Offset = "0x528D40", VA = "0x18052A340", Slot = "8")]
|
||||
[CompilerGenerated]
|
||||
remove
|
||||
{
|
||||
OnAuthenticationFailedDelegate onAuthenticationFailed;
|
||||
Delegate @delegate;
|
||||
do
|
||||
{
|
||||
onAuthenticationFailed = this.OnAuthenticationFailed;
|
||||
@delegate = Delegate.Remove(onAuthenticationFailed, value);
|
||||
}
|
||||
while (@delegate != 0 && @delegate == 0);
|
||||
while (@delegate != onAuthenticationFailed)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06007A7B RID: 31355 RVA: 0x00197210 File Offset: 0x00195410
|
||||
[Token(Token = "0x6007A7B")]
|
||||
[Address(RVA = "0x52A1D0", Offset = "0x528BD0", VA = "0x18052A1D0")]
|
||||
public DefaultAccessTokenAuthenticator(HubConnection connection)
|
||||
{
|
||||
this.StartAuthentication();
|
||||
this._connection = connection;
|
||||
}
|
||||
|
||||
// Token: 0x06007A7C RID: 31356 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x6007A7C")]
|
||||
[Address(RVA = "0x3C9F60", Offset = "0x3C8960", VA = "0x1803C9F60", Slot = "9")]
|
||||
public void StartAuthentication()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06007A7D RID: 31357 RVA: 0x0019722C File Offset: 0x0019542C
|
||||
[Token(Token = "0x6007A7D")]
|
||||
[Address(RVA = "0x529E60", Offset = "0x528860", VA = "0x180529E60", Slot = "10")]
|
||||
public void PrepareRequest(NEBIGEDJGPP request)
|
||||
{
|
||||
if (HTTPProtocolFactory.GetProtocolFromUri(request.FHCKMFKKHLK) == SupportedProtocols.HTTP)
|
||||
{
|
||||
Uri uri = request.NJIBHKPHKFF;
|
||||
HubConnection connection = this._connection;
|
||||
NegotiationResult <NegotiationResult>k__BackingField = connection.<NegotiationResult>k__BackingField;
|
||||
if (<NegotiationResult>k__BackingField != 0)
|
||||
{
|
||||
string <AccessToken>k__BackingField = <NegotiationResult>k__BackingField.<AccessToken>k__BackingField;
|
||||
if (connection == 0)
|
||||
{
|
||||
if (uri.Query != 0)
|
||||
{
|
||||
}
|
||||
string text = uri.Query + "&";
|
||||
string scheme = uri.Scheme;
|
||||
string host = uri.Host;
|
||||
int port = uri.Port;
|
||||
string absolutePath = uri.AbsolutePath;
|
||||
string <AccessToken>k__BackingField2 = this._connection.<NegotiationResult>k__BackingField.<AccessToken>k__BackingField;
|
||||
string text2 = text + "access_token=" + <AccessToken>k__BackingField2;
|
||||
Uri uri2 = new UriBuilder(scheme, host, port, absolutePath, text2).Uri;
|
||||
}
|
||||
}
|
||||
request.NJIBHKPHKFF = uri;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06007A7E RID: 31358 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x6007A7E")]
|
||||
[Address(RVA = "0x3C9F60", Offset = "0x3C8960", VA = "0x1803C9F60", Slot = "11")]
|
||||
public void PrepareWebSocket(WebSocket webSocket)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06007A7F RID: 31359 RVA: 0x001972F4 File Offset: 0x001954F4
|
||||
[Token(Token = "0x6007A7F")]
|
||||
[Address(RVA = "0x52A030", Offset = "0x528A30", VA = "0x18052A030", Slot = "12")]
|
||||
public Uri PrepareUri(Uri uri)
|
||||
{
|
||||
HubConnection connection = this._connection;
|
||||
NegotiationResult <NegotiationResult>k__BackingField = connection.<NegotiationResult>k__BackingField;
|
||||
if (<NegotiationResult>k__BackingField != 0)
|
||||
{
|
||||
string <AccessToken>k__BackingField = <NegotiationResult>k__BackingField.<AccessToken>k__BackingField;
|
||||
if (connection == 0)
|
||||
{
|
||||
if (uri.Query != 0)
|
||||
{
|
||||
}
|
||||
string text = uri.Query + "&";
|
||||
string scheme = uri.Scheme;
|
||||
string host = uri.Host;
|
||||
int port = uri.Port;
|
||||
string absolutePath = uri.AbsolutePath;
|
||||
string <AccessToken>k__BackingField2 = this._connection.<NegotiationResult>k__BackingField.<AccessToken>k__BackingField;
|
||||
string text2 = text + "access_token=" + <AccessToken>k__BackingField2;
|
||||
return new UriBuilder(scheme, host, port, absolutePath, text2).Uri;
|
||||
}
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04005832 RID: 22578
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4005832")]
|
||||
private HubConnection _connection;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,161 @@
|
||||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.WebSocket;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SignalRCore
|
||||
{
|
||||
// Token: 0x020012F5 RID: 4853
|
||||
[Token(Token = "0x20012F5")]
|
||||
[StructLayout(3)]
|
||||
public class BearerTokenAuthProvider : IAuthenticationProvider
|
||||
{
|
||||
// Token: 0x06007998 RID: 31128 RVA: 0x001949A0 File Offset: 0x00192BA0
|
||||
[Token(Token = "0x6007998")]
|
||||
[Address(RVA = "0x3C3A30", Offset = "0x3C2430", VA = "0x1803C3A30")]
|
||||
public BearerTokenAuthProvider(string accessToken)
|
||||
{
|
||||
this.StartAuthentication();
|
||||
this.accessToken = accessToken;
|
||||
}
|
||||
|
||||
// Token: 0x170013C7 RID: 5063
|
||||
// (get) Token: 0x06007999 RID: 31129 RVA: 0x001949BC File Offset: 0x00192BBC
|
||||
[Token(Token = "0x170013C7")]
|
||||
public bool IsPreAuthRequired
|
||||
{
|
||||
[Token(Token = "0x6007999")]
|
||||
[Address(RVA = "0x413970", Offset = "0x412370", VA = "0x180413970", Slot = "4")]
|
||||
get
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x140000AB RID: 171
|
||||
// (add) Token: 0x0600799A RID: 31130 RVA: 0x001949CC File Offset: 0x00192BCC
|
||||
// (remove) Token: 0x0600799B RID: 31131 RVA: 0x001949F4 File Offset: 0x00192BF4
|
||||
[Token(Token = "0x140000AB")]
|
||||
public event OnAuthenticationSuccededDelegate OnAuthenticationSucceded
|
||||
{
|
||||
[Token(Token = "0x600799A")]
|
||||
[Address(RVA = "0x529C80", Offset = "0x528680", VA = "0x180529C80", Slot = "5")]
|
||||
[CompilerGenerated]
|
||||
add
|
||||
{
|
||||
OnAuthenticationSuccededDelegate onAuthenticationSucceded;
|
||||
Delegate @delegate;
|
||||
do
|
||||
{
|
||||
onAuthenticationSucceded = this.OnAuthenticationSucceded;
|
||||
@delegate = Delegate.Combine(onAuthenticationSucceded, value);
|
||||
}
|
||||
while (@delegate != 0 && @delegate == 0);
|
||||
while (@delegate != onAuthenticationSucceded)
|
||||
{
|
||||
}
|
||||
}
|
||||
[Token(Token = "0x600799B")]
|
||||
[Address(RVA = "0x529DC0", Offset = "0x5287C0", VA = "0x180529DC0", Slot = "6")]
|
||||
[CompilerGenerated]
|
||||
remove
|
||||
{
|
||||
OnAuthenticationSuccededDelegate onAuthenticationSucceded;
|
||||
Delegate @delegate;
|
||||
do
|
||||
{
|
||||
onAuthenticationSucceded = this.OnAuthenticationSucceded;
|
||||
@delegate = Delegate.Remove(onAuthenticationSucceded, value);
|
||||
}
|
||||
while (@delegate != 0 && @delegate == 0);
|
||||
while (@delegate != onAuthenticationSucceded)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x140000AC RID: 172
|
||||
// (add) Token: 0x0600799C RID: 31132 RVA: 0x00194A1C File Offset: 0x00192C1C
|
||||
// (remove) Token: 0x0600799D RID: 31133 RVA: 0x00194A44 File Offset: 0x00192C44
|
||||
[Token(Token = "0x140000AC")]
|
||||
public event OnAuthenticationFailedDelegate OnAuthenticationFailed
|
||||
{
|
||||
[Token(Token = "0x600799C")]
|
||||
[Address(RVA = "0x529BE0", Offset = "0x5285E0", VA = "0x180529BE0", Slot = "7")]
|
||||
[CompilerGenerated]
|
||||
add
|
||||
{
|
||||
OnAuthenticationFailedDelegate onAuthenticationFailed;
|
||||
Delegate @delegate;
|
||||
do
|
||||
{
|
||||
onAuthenticationFailed = this.OnAuthenticationFailed;
|
||||
@delegate = Delegate.Combine(onAuthenticationFailed, value);
|
||||
}
|
||||
while (@delegate != 0 && @delegate == 0);
|
||||
while (@delegate != onAuthenticationFailed)
|
||||
{
|
||||
}
|
||||
}
|
||||
[Token(Token = "0x600799D")]
|
||||
[Address(RVA = "0x529D20", Offset = "0x528720", VA = "0x180529D20", Slot = "8")]
|
||||
[CompilerGenerated]
|
||||
remove
|
||||
{
|
||||
OnAuthenticationFailedDelegate onAuthenticationFailed;
|
||||
Delegate @delegate;
|
||||
do
|
||||
{
|
||||
onAuthenticationFailed = this.OnAuthenticationFailed;
|
||||
@delegate = Delegate.Remove(onAuthenticationFailed, value);
|
||||
}
|
||||
while (@delegate != 0 && @delegate == 0);
|
||||
while (@delegate != onAuthenticationFailed)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600799E RID: 31134 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x600799E")]
|
||||
[Address(RVA = "0x3C9F60", Offset = "0x3C8960", VA = "0x1803C9F60", Slot = "9")]
|
||||
public void StartAuthentication()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600799F RID: 31135 RVA: 0x00194A6C File Offset: 0x00192C6C
|
||||
[Token(Token = "0x600799F")]
|
||||
[Address(RVA = "0x529AF0", Offset = "0x5284F0", VA = "0x180529AF0", Slot = "10")]
|
||||
public void PrepareRequest(NEBIGEDJGPP request)
|
||||
{
|
||||
string text = this.accessToken;
|
||||
string text2 = "Bearer " + text;
|
||||
request.MKICFHMIDJC("Authorization", text2);
|
||||
}
|
||||
|
||||
// Token: 0x060079A0 RID: 31136 RVA: 0x00194AA0 File Offset: 0x00192CA0
|
||||
[Token(Token = "0x60079A0")]
|
||||
[Address(RVA = "0x529B60", Offset = "0x528560", VA = "0x180529B60", Slot = "11")]
|
||||
public void PrepareWebSocket(WebSocket webSocket)
|
||||
{
|
||||
string text = this.accessToken;
|
||||
HTTPRequest <InternalRequest>k__BackingField = webSocket.<InternalRequest>k__BackingField;
|
||||
string text2 = "Bearer " + text;
|
||||
<InternalRequest>k__BackingField.SetHeader("Authorization", text2);
|
||||
}
|
||||
|
||||
// Token: 0x060079A1 RID: 31137 RVA: 0x00194ADC File Offset: 0x00192CDC
|
||||
[Token(Token = "0x60079A1")]
|
||||
[Address(RVA = "0x51AE30", Offset = "0x519830", VA = "0x18051AE30", Slot = "12")]
|
||||
public Uri PrepareUri(Uri uri)
|
||||
{
|
||||
return uri;
|
||||
}
|
||||
|
||||
// Token: 0x040057C3 RID: 22467
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40057C3")]
|
||||
private readonly string accessToken;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SignalRCore
|
||||
{
|
||||
// Token: 0x020012FD RID: 4861
|
||||
[Token(Token = "0x20012FD")]
|
||||
[StructLayout(0)]
|
||||
internal struct CallbackDescriptor
|
||||
{
|
||||
// Token: 0x060079B7 RID: 31159 RVA: 0x00194B9C File Offset: 0x00192D9C
|
||||
[Token(Token = "0x60079B7")]
|
||||
[Address(RVA = "0x112E0", Offset = "0x106E0", VA = "0x1800112E0")]
|
||||
public CallbackDescriptor(Type[] paramTypes, Action<object[]> callback)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x040057DE RID: 22494
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x0")]
|
||||
[Token(Token = "0x40057DE")]
|
||||
public readonly Type[] ParamTypes;
|
||||
|
||||
// Token: 0x040057DF RID: 22495
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x8")]
|
||||
[Token(Token = "0x40057DF")]
|
||||
public readonly Action<object[]> Callback;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SignalRCore
|
||||
{
|
||||
// Token: 0x020012F9 RID: 4857
|
||||
[Token(Token = "0x20012F9")]
|
||||
[StructLayout(3, Size = 4)]
|
||||
public enum ConnectionStates
|
||||
{
|
||||
// Token: 0x040057D3 RID: 22483
|
||||
[Token(Token = "0x40057D3")]
|
||||
Initial,
|
||||
// Token: 0x040057D4 RID: 22484
|
||||
[Token(Token = "0x40057D4")]
|
||||
Authenticating,
|
||||
// Token: 0x040057D5 RID: 22485
|
||||
[Token(Token = "0x40057D5")]
|
||||
Negotiating,
|
||||
// Token: 0x040057D6 RID: 22486
|
||||
[Token(Token = "0x40057D6")]
|
||||
Redirected,
|
||||
// Token: 0x040057D7 RID: 22487
|
||||
[Token(Token = "0x40057D7")]
|
||||
Connected,
|
||||
// Token: 0x040057D8 RID: 22488
|
||||
[Token(Token = "0x40057D8")]
|
||||
CloseInitiated,
|
||||
// Token: 0x040057D9 RID: 22489
|
||||
[Token(Token = "0x40057D9")]
|
||||
Closed
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,162 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SignalRCore.Encoders
|
||||
{
|
||||
// Token: 0x0200130E RID: 4878
|
||||
[Token(Token = "0x200130E")]
|
||||
[StructLayout(3)]
|
||||
public sealed class LitJsonEncoder : IEncoder
|
||||
{
|
||||
// Token: 0x170013E2 RID: 5090
|
||||
// (get) Token: 0x06007A2F RID: 31279 RVA: 0x001961EC File Offset: 0x001943EC
|
||||
[Token(Token = "0x170013E2")]
|
||||
public string Name
|
||||
{
|
||||
[Token(Token = "0x6007A2F")]
|
||||
[Address(RVA = "0x6EFCB0", Offset = "0x6EE6B0", VA = "0x1806EFCB0", Slot = "4")]
|
||||
get
|
||||
{
|
||||
return "json";
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06007A30 RID: 31280 RVA: 0x00196200 File Offset: 0x00194400
|
||||
[Token(Token = "0x6007A30")]
|
||||
[Address(RVA = "0x6EF7E0", Offset = "0x6EE1E0", VA = "0x1806EF7E0")]
|
||||
public LitJsonEncoder()
|
||||
{
|
||||
KJBJHOONAKL<int, long> <>9__2_ = LitJsonEncoder.<>c.<>9__2_0;
|
||||
if (<>9__2_ == 0)
|
||||
{
|
||||
LitJsonEncoder.<>c.<>9__2_0 = delegate(int input)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
};
|
||||
}
|
||||
NOEIKACMNJH.EDOFHMLFIHF<int, long>(<>9__2_);
|
||||
KJBJHOONAKL<long, int> kjbjhoonakl;
|
||||
if (LitJsonEncoder.<>c.<>9__2_1 == 0)
|
||||
{
|
||||
kjbjhoonakl = delegate(long input)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
};
|
||||
LitJsonEncoder.<>c.<>9__2_1 = kjbjhoonakl;
|
||||
}
|
||||
NOEIKACMNJH.EDOFHMLFIHF<long, int>(kjbjhoonakl);
|
||||
KJBJHOONAKL<double, int> kjbjhoonakl2;
|
||||
if (LitJsonEncoder.<>c.<>9__2_2 == 0)
|
||||
{
|
||||
kjbjhoonakl2 = delegate(double input)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
};
|
||||
LitJsonEncoder.<>c.<>9__2_2 = kjbjhoonakl2;
|
||||
}
|
||||
NOEIKACMNJH.EDOFHMLFIHF<double, int>(kjbjhoonakl2);
|
||||
KJBJHOONAKL<string, DateTime> kjbjhoonakl3;
|
||||
if (LitJsonEncoder.<>c.<>9__2_3 == 0)
|
||||
{
|
||||
kjbjhoonakl3 = (string input) => Convert.ToDateTime(input);
|
||||
LitJsonEncoder.<>c.<>9__2_3 = kjbjhoonakl3;
|
||||
}
|
||||
NOEIKACMNJH.EDOFHMLFIHF<string, DateTime>(kjbjhoonakl3);
|
||||
KJBJHOONAKL<double, float> kjbjhoonakl4;
|
||||
if (LitJsonEncoder.<>c.<>9__2_4 == 0)
|
||||
{
|
||||
kjbjhoonakl4 = delegate(double input)
|
||||
{
|
||||
};
|
||||
LitJsonEncoder.<>c.<>9__2_4 = kjbjhoonakl4;
|
||||
}
|
||||
NOEIKACMNJH.EDOFHMLFIHF<double, float>(kjbjhoonakl4);
|
||||
KJBJHOONAKL<string, byte[]> kjbjhoonakl5;
|
||||
if (LitJsonEncoder.<>c.<>9__2_5 == 0)
|
||||
{
|
||||
kjbjhoonakl5 = (string input) => Convert.FromBase64String(input);
|
||||
LitJsonEncoder.<>c.<>9__2_5 = kjbjhoonakl5;
|
||||
}
|
||||
NOEIKACMNJH.EDOFHMLFIHF<string, byte[]>(kjbjhoonakl5);
|
||||
}
|
||||
|
||||
// Token: 0x06007A31 RID: 31281 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x6007A31")]
|
||||
[Address(RVA = "0x1B5F900", Offset = "0x1B5E300", VA = "0x181B5F900", Slot = "6")]
|
||||
public T DecodeAs<T>(string text)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06007A32 RID: 31282 RVA: 0x001962F8 File Offset: 0x001944F8
|
||||
[Token(Token = "0x6007A32")]
|
||||
[Address(RVA = "0x1B5F9A0", Offset = "0x1B5E3A0", VA = "0x181B5F9A0", Slot = "8")]
|
||||
public T DecodeAs<T>(byte[] data)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06007A32)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling T BestHTTP.SignalRCore.Encoders.LitJsonEncoder::DecodeAs<T>(System.Byte[])
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:NotImplementedException(var_0_05, newobj:NotImplementedException(NotImplementedException::.ctor))
|
||||
}
|
||||
|
||||
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
|
||||
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
|
||||
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
|
||||
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
|
||||
--- End of inner exception stack trace ---
|
||||
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
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x06007A33 RID: 31283 RVA: 0x0019630C File Offset: 0x0019450C
|
||||
[Token(Token = "0x6007A33")]
|
||||
[Address(RVA = "0x20DD940", Offset = "0x20DC340", VA = "0x1820DD940", Slot = "7")]
|
||||
public byte[] EncodeAsBinary<T>(T value)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06007A33)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Byte[] BestHTTP.SignalRCore.Encoders.LitJsonEncoder::EncodeAsBinary<T>(T)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:NotImplementedException(var_0_05, newobj:NotImplementedException(NotImplementedException::.ctor))
|
||||
}
|
||||
|
||||
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
|
||||
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
|
||||
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
|
||||
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
|
||||
--- End of inner exception stack trace ---
|
||||
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
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x06007A34 RID: 31284 RVA: 0x00196320 File Offset: 0x00194520
|
||||
[Token(Token = "0x6007A34")]
|
||||
[Address(RVA = "0x20434A0", Offset = "0x2041EA0", VA = "0x1820434A0", Slot = "5")]
|
||||
public string EncodeAsText<T>(T value)
|
||||
{
|
||||
string text;
|
||||
return text;
|
||||
}
|
||||
|
||||
// Token: 0x06007A35 RID: 31285 RVA: 0x00196330 File Offset: 0x00194530
|
||||
[Token(Token = "0x6007A35")]
|
||||
[Address(RVA = "0x6EF770", Offset = "0x6EE170", VA = "0x1806EF770", Slot = "9")]
|
||||
public object ConvertTo(Type toType, object obj)
|
||||
{
|
||||
string text = NOEIKACMNJH.MFFBDFHINID(obj);
|
||||
return NOEIKACMNJH.IGOEEFAAPKD(toType, text);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,162 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SignalRCore.Encoders
|
||||
{
|
||||
// Token: 0x02001310 RID: 4880
|
||||
[Token(Token = "0x2001310")]
|
||||
[StructLayout(3)]
|
||||
public sealed class MessagePackEncoder : IEncoder
|
||||
{
|
||||
// Token: 0x170013E3 RID: 5091
|
||||
// (get) Token: 0x06007A3E RID: 31294 RVA: 0x001963B0 File Offset: 0x001945B0
|
||||
[Token(Token = "0x170013E3")]
|
||||
public string Name
|
||||
{
|
||||
[Token(Token = "0x6007A3E")]
|
||||
[Address(RVA = "0x6EFD30", Offset = "0x6EE730", VA = "0x1806EFD30", Slot = "4")]
|
||||
get
|
||||
{
|
||||
return "messagepack";
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06007A3F RID: 31295 RVA: 0x001963C4 File Offset: 0x001945C4
|
||||
[Token(Token = "0x6007A3F")]
|
||||
[Address(RVA = "0x6EFCE0", Offset = "0x6EE6E0", VA = "0x1806EFCE0", Slot = "9")]
|
||||
public object ConvertTo(Type toType, object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06007A3F)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Object BestHTTP.SignalRCore.Encoders.MessagePackEncoder::ConvertTo(System.Type,System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:NotImplementedException(var_0_05, newobj:NotImplementedException(NotImplementedException::.ctor))
|
||||
}
|
||||
|
||||
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
|
||||
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
|
||||
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
|
||||
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
|
||||
--- End of inner exception stack trace ---
|
||||
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
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x06007A40 RID: 31296 RVA: 0x001963D8 File Offset: 0x001945D8
|
||||
[Token(Token = "0x6007A40")]
|
||||
[Address(RVA = "0x1B60810", Offset = "0x1B5F210", VA = "0x181B60810", Slot = "6")]
|
||||
public T DecodeAs<T>(string text)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06007A40)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling T BestHTTP.SignalRCore.Encoders.MessagePackEncoder::DecodeAs<T>(System.String)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:NotImplementedException(var_0_05, newobj:NotImplementedException(NotImplementedException::.ctor))
|
||||
}
|
||||
|
||||
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
|
||||
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
|
||||
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
|
||||
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
|
||||
--- End of inner exception stack trace ---
|
||||
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
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x06007A41 RID: 31297 RVA: 0x001963EC File Offset: 0x001945EC
|
||||
[Token(Token = "0x6007A41")]
|
||||
[Address(RVA = "0x1B608B0", Offset = "0x1B5F2B0", VA = "0x181B608B0", Slot = "8")]
|
||||
public T DecodeAs<T>(byte[] data)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06007A41)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling T BestHTTP.SignalRCore.Encoders.MessagePackEncoder::DecodeAs<T>(System.Byte[])
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:NotImplementedException(var_0_05, newobj:NotImplementedException(NotImplementedException::.ctor))
|
||||
}
|
||||
|
||||
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
|
||||
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
|
||||
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
|
||||
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
|
||||
--- End of inner exception stack trace ---
|
||||
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
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x06007A42 RID: 31298 RVA: 0x00196400 File Offset: 0x00194600
|
||||
[Token(Token = "0x6007A42")]
|
||||
[Address(RVA = "0x20DD990", Offset = "0x20DC390", VA = "0x1820DD990", Slot = "7")]
|
||||
public byte[] EncodeAsBinary<T>(T value)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06007A42)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Byte[] BestHTTP.SignalRCore.Encoders.MessagePackEncoder::EncodeAsBinary<T>(T)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:NotImplementedException(var_0_05, newobj:NotImplementedException(NotImplementedException::.ctor))
|
||||
}
|
||||
|
||||
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
|
||||
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
|
||||
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
|
||||
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
|
||||
--- End of inner exception stack trace ---
|
||||
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
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x06007A43 RID: 31299 RVA: 0x00196414 File Offset: 0x00194614
|
||||
[Token(Token = "0x6007A43")]
|
||||
[Address(RVA = "0x2045D00", Offset = "0x2044700", VA = "0x182045D00", Slot = "5")]
|
||||
public string EncodeAsText<T>(T value)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06007A43)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String BestHTTP.SignalRCore.Encoders.MessagePackEncoder::EncodeAsText<T>(T)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:NotImplementedException(var_0_05, newobj:NotImplementedException(NotImplementedException::.ctor))
|
||||
}
|
||||
|
||||
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
|
||||
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
|
||||
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
|
||||
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
|
||||
--- End of inner exception stack trace ---
|
||||
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
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x06007A44 RID: 31300 RVA: 0x00196428 File Offset: 0x00194628
|
||||
[Token(Token = "0x6007A44")]
|
||||
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
||||
public MessagePackEncoder()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,193 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SignalRCore.Messages;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SignalRCore.Encoders
|
||||
{
|
||||
// Token: 0x02001311 RID: 4881
|
||||
[Token(Token = "0x2001311")]
|
||||
[StructLayout(3)]
|
||||
public sealed class MessagePackProtocol : IProtocol
|
||||
{
|
||||
// Token: 0x170013E4 RID: 5092
|
||||
// (get) Token: 0x06007A45 RID: 31301 RVA: 0x0019643C File Offset: 0x0019463C
|
||||
[Token(Token = "0x170013E4")]
|
||||
public TransferModes Type
|
||||
{
|
||||
[Token(Token = "0x6007A45")]
|
||||
[Address(RVA = "0x3F8880", Offset = "0x3F7280", VA = "0x1803F8880", Slot = "4")]
|
||||
get
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170013E5 RID: 5093
|
||||
// (get) Token: 0x06007A46 RID: 31302 RVA: 0x0019644C File Offset: 0x0019464C
|
||||
// (set) Token: 0x06007A47 RID: 31303 RVA: 0x00196460 File Offset: 0x00194660
|
||||
[Token(Token = "0x170013E5")]
|
||||
public IEncoder Encoder
|
||||
{
|
||||
[Token(Token = "0x6007A46")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "5")]
|
||||
get;
|
||||
[Token(Token = "0x6007A47")]
|
||||
[Address(RVA = "0x3C39B0", Offset = "0x3C23B0", VA = "0x1803C39B0")]
|
||||
private set;
|
||||
}
|
||||
|
||||
// Token: 0x170013E6 RID: 5094
|
||||
// (get) Token: 0x06007A48 RID: 31304 RVA: 0x00196474 File Offset: 0x00194674
|
||||
// (set) Token: 0x06007A49 RID: 31305 RVA: 0x00196488 File Offset: 0x00194688
|
||||
[Token(Token = "0x170013E6")]
|
||||
public HubConnection Connection
|
||||
{
|
||||
[Token(Token = "0x6007A48")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "6")]
|
||||
get;
|
||||
[Token(Token = "0x6007A49")]
|
||||
[Address(RVA = "0x3C1280", Offset = "0x3BFC80", VA = "0x1803C1280", Slot = "7")]
|
||||
set;
|
||||
}
|
||||
|
||||
// Token: 0x06007A4A RID: 31306 RVA: 0x0019649C File Offset: 0x0019469C
|
||||
[Token(Token = "0x6007A4A")]
|
||||
[Address(RVA = "0x6EFEF0", Offset = "0x6EE8F0", VA = "0x1806EFEF0")]
|
||||
public MessagePackProtocol()
|
||||
{
|
||||
MessagePackEncoder messagePackEncoder = new MessagePackEncoder();
|
||||
this.Encoder = messagePackEncoder;
|
||||
}
|
||||
|
||||
// Token: 0x06007A4B RID: 31307 RVA: 0x001964BC File Offset: 0x001946BC
|
||||
[Token(Token = "0x6007A4B")]
|
||||
[Address(RVA = "0x6EFD60", Offset = "0x6EE760", VA = "0x1806EFD60", Slot = "12")]
|
||||
public object ConvertTo(Type toType, object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06007A4B)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Object BestHTTP.SignalRCore.Encoders.MessagePackProtocol::ConvertTo(System.Type,System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:NotImplementedException(var_0_05, newobj:NotImplementedException(NotImplementedException::.ctor))
|
||||
}
|
||||
|
||||
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
|
||||
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
|
||||
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
|
||||
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
|
||||
--- End of inner exception stack trace ---
|
||||
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
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x06007A4C RID: 31308 RVA: 0x001964D0 File Offset: 0x001946D0
|
||||
[Token(Token = "0x6007A4C")]
|
||||
[Address(RVA = "0x6EFDB0", Offset = "0x6EE7B0", VA = "0x1806EFDB0", Slot = "10")]
|
||||
public byte[] EncodeMessage(Message message)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06007A4C)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Byte[] BestHTTP.SignalRCore.Encoders.MessagePackProtocol::EncodeMessage(BestHTTP.SignalRCore.Messages.Message)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:NotImplementedException(var_0_05, newobj:NotImplementedException(NotImplementedException::.ctor))
|
||||
}
|
||||
|
||||
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
|
||||
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
|
||||
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
|
||||
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
|
||||
--- End of inner exception stack trace ---
|
||||
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
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x06007A4D RID: 31309 RVA: 0x001964E4 File Offset: 0x001946E4
|
||||
[Token(Token = "0x6007A4D")]
|
||||
[Address(RVA = "0x6EFE00", Offset = "0x6EE800", VA = "0x1806EFE00", Slot = "11")]
|
||||
public object[] GetRealArguments(Type[] argTypes, object[] arguments)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06007A4D)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Object[] BestHTTP.SignalRCore.Encoders.MessagePackProtocol::GetRealArguments(System.Type[],System.Object[])
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:NotImplementedException(var_0_05, newobj:NotImplementedException(NotImplementedException::.ctor))
|
||||
}
|
||||
|
||||
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
|
||||
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
|
||||
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
|
||||
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
|
||||
--- End of inner exception stack trace ---
|
||||
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
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x06007A4E RID: 31310 RVA: 0x001964F8 File Offset: 0x001946F8
|
||||
[Token(Token = "0x6007A4E")]
|
||||
[Address(RVA = "0x6EFEA0", Offset = "0x6EE8A0", VA = "0x1806EFEA0", Slot = "8")]
|
||||
public void ParseMessages(string data, ref List<Message> messages)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06007A4E)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SignalRCore.Encoders.MessagePackProtocol::ParseMessages(System.String,System.Collections.Generic.List`1<BestHTTP.SignalRCore.Messages.Message>&)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:NotImplementedException(var_0_05, newobj:NotImplementedException(NotImplementedException::.ctor))
|
||||
}
|
||||
|
||||
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
|
||||
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
|
||||
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
|
||||
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
|
||||
--- End of inner exception stack trace ---
|
||||
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
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x06007A4F RID: 31311 RVA: 0x0019650C File Offset: 0x0019470C
|
||||
[Token(Token = "0x6007A4F")]
|
||||
[Address(RVA = "0x6EFE50", Offset = "0x6EE850", VA = "0x1806EFE50", Slot = "9")]
|
||||
public void ParseMessages(byte[] data, ref List<Message> messages)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06007A4F)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SignalRCore.Encoders.MessagePackProtocol::ParseMessages(System.Byte[],System.Collections.Generic.List`1<BestHTTP.SignalRCore.Messages.Message>&)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:NotImplementedException(var_0_05, newobj:NotImplementedException(NotImplementedException::.ctor))
|
||||
}
|
||||
|
||||
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
|
||||
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
|
||||
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
|
||||
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
|
||||
--- End of inner exception stack trace ---
|
||||
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
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,1018 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.Extensions;
|
||||
using BestHTTP.Futures;
|
||||
using BestHTTP.Logger;
|
||||
using BestHTTP.SignalRCore.Authentication;
|
||||
using BestHTTP.SignalRCore.Messages;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SignalRCore
|
||||
{
|
||||
// Token: 0x02001300 RID: 4864
|
||||
[Token(Token = "0x2001300")]
|
||||
[StructLayout(3)]
|
||||
public sealed class HubConnection : IHeartbeat
|
||||
{
|
||||
// Token: 0x170013D3 RID: 5075
|
||||
// (get) Token: 0x060079C4 RID: 31172 RVA: 0x00194CD8 File Offset: 0x00192ED8
|
||||
// (set) Token: 0x060079C5 RID: 31173 RVA: 0x00194CEC File Offset: 0x00192EEC
|
||||
[Token(Token = "0x170013D3")]
|
||||
public Uri Uri
|
||||
{
|
||||
[Token(Token = "0x60079C4")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get;
|
||||
[Token(Token = "0x60079C5")]
|
||||
[Address(RVA = "0x3C39B0", Offset = "0x3C23B0", VA = "0x1803C39B0")]
|
||||
private set;
|
||||
}
|
||||
|
||||
// Token: 0x170013D4 RID: 5076
|
||||
// (get) Token: 0x060079C6 RID: 31174 RVA: 0x00194D00 File Offset: 0x00192F00
|
||||
// (set) Token: 0x060079C7 RID: 31175 RVA: 0x00194D14 File Offset: 0x00192F14
|
||||
[Token(Token = "0x170013D4")]
|
||||
public ConnectionStates State
|
||||
{
|
||||
[Token(Token = "0x60079C6")]
|
||||
[Address(RVA = "0x3EE8D0", Offset = "0x3ED2D0", VA = "0x1803EE8D0")]
|
||||
get;
|
||||
[Token(Token = "0x60079C7")]
|
||||
[Address(RVA = "0x4F8C20", Offset = "0x4F7620", VA = "0x1804F8C20")]
|
||||
private set;
|
||||
}
|
||||
|
||||
// Token: 0x170013D5 RID: 5077
|
||||
// (get) Token: 0x060079C8 RID: 31176 RVA: 0x00194D28 File Offset: 0x00192F28
|
||||
// (set) Token: 0x060079C9 RID: 31177 RVA: 0x00194D3C File Offset: 0x00192F3C
|
||||
[Token(Token = "0x170013D5")]
|
||||
public ITransport Transport
|
||||
{
|
||||
[Token(Token = "0x60079C8")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
||||
get;
|
||||
[Token(Token = "0x60079C9")]
|
||||
[Address(RVA = "0x3C1260", Offset = "0x3BFC60", VA = "0x1803C1260")]
|
||||
private set;
|
||||
}
|
||||
|
||||
// Token: 0x170013D6 RID: 5078
|
||||
// (get) Token: 0x060079CA RID: 31178 RVA: 0x00194D50 File Offset: 0x00192F50
|
||||
// (set) Token: 0x060079CB RID: 31179 RVA: 0x00194D64 File Offset: 0x00192F64
|
||||
[Token(Token = "0x170013D6")]
|
||||
public IProtocol Protocol
|
||||
{
|
||||
[Token(Token = "0x60079CA")]
|
||||
[Address(RVA = "0x3C1230", Offset = "0x3BFC30", VA = "0x1803C1230")]
|
||||
get;
|
||||
[Token(Token = "0x60079CB")]
|
||||
[Address(RVA = "0x3C1270", Offset = "0x3BFC70", VA = "0x1803C1270")]
|
||||
private set;
|
||||
}
|
||||
|
||||
// Token: 0x140000AE RID: 174
|
||||
// (add) Token: 0x060079CC RID: 31180 RVA: 0x00194D78 File Offset: 0x00192F78
|
||||
// (remove) Token: 0x060079CD RID: 31181 RVA: 0x00194DA0 File Offset: 0x00192FA0
|
||||
[Token(Token = "0x140000AE")]
|
||||
public event Action<HubConnection, Uri, Uri> OnRedirected
|
||||
{
|
||||
[Token(Token = "0x60079CC")]
|
||||
[Address(RVA = "0x6EE880", Offset = "0x6ED280", VA = "0x1806EE880")]
|
||||
[CompilerGenerated]
|
||||
add
|
||||
{
|
||||
Action<HubConnection, Uri, Uri> onRedirected;
|
||||
Delegate @delegate;
|
||||
do
|
||||
{
|
||||
onRedirected = this.OnRedirected;
|
||||
@delegate = Delegate.Combine(onRedirected, value);
|
||||
}
|
||||
while (@delegate != 0 && @delegate == 0);
|
||||
while (@delegate != onRedirected)
|
||||
{
|
||||
}
|
||||
}
|
||||
[Token(Token = "0x60079CD")]
|
||||
[Address(RVA = "0x6EEBA0", Offset = "0x6ED5A0", VA = "0x1806EEBA0")]
|
||||
[CompilerGenerated]
|
||||
remove
|
||||
{
|
||||
Action<HubConnection, Uri, Uri> onRedirected;
|
||||
Delegate @delegate;
|
||||
do
|
||||
{
|
||||
onRedirected = this.OnRedirected;
|
||||
@delegate = Delegate.Remove(onRedirected, value);
|
||||
}
|
||||
while (@delegate != 0 && @delegate == 0);
|
||||
while (@delegate != onRedirected)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x140000AF RID: 175
|
||||
// (add) Token: 0x060079CE RID: 31182 RVA: 0x00194DC8 File Offset: 0x00192FC8
|
||||
// (remove) Token: 0x060079CF RID: 31183 RVA: 0x00194DF0 File Offset: 0x00192FF0
|
||||
[Token(Token = "0x140000AF")]
|
||||
public event Action<HubConnection> OnConnected
|
||||
{
|
||||
[Token(Token = "0x60079CE")]
|
||||
[Address(RVA = "0x6EE6A0", Offset = "0x6ED0A0", VA = "0x1806EE6A0")]
|
||||
[CompilerGenerated]
|
||||
add
|
||||
{
|
||||
Action<HubConnection> onConnected;
|
||||
Delegate @delegate;
|
||||
do
|
||||
{
|
||||
onConnected = this.OnConnected;
|
||||
@delegate = Delegate.Combine(onConnected, value);
|
||||
}
|
||||
while (@delegate != 0 && @delegate == 0);
|
||||
while (@delegate != onConnected)
|
||||
{
|
||||
}
|
||||
}
|
||||
[Token(Token = "0x60079CF")]
|
||||
[Address(RVA = "0x6EE9C0", Offset = "0x6ED3C0", VA = "0x1806EE9C0")]
|
||||
[CompilerGenerated]
|
||||
remove
|
||||
{
|
||||
Action<HubConnection> onConnected;
|
||||
Delegate @delegate;
|
||||
do
|
||||
{
|
||||
onConnected = this.OnConnected;
|
||||
@delegate = Delegate.Remove(onConnected, value);
|
||||
}
|
||||
while (@delegate != 0 && @delegate == 0);
|
||||
while (@delegate != onConnected)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x140000B0 RID: 176
|
||||
// (add) Token: 0x060079D0 RID: 31184 RVA: 0x00194E18 File Offset: 0x00193018
|
||||
// (remove) Token: 0x060079D1 RID: 31185 RVA: 0x00194E40 File Offset: 0x00193040
|
||||
[Token(Token = "0x140000B0")]
|
||||
public event Action<HubConnection, string> OnError
|
||||
{
|
||||
[Token(Token = "0x60079D0")]
|
||||
[Address(RVA = "0x6EE740", Offset = "0x6ED140", VA = "0x1806EE740")]
|
||||
[CompilerGenerated]
|
||||
add
|
||||
{
|
||||
Action<HubConnection, string> onError;
|
||||
Delegate @delegate;
|
||||
do
|
||||
{
|
||||
onError = this.OnError;
|
||||
@delegate = Delegate.Combine(onError, value);
|
||||
}
|
||||
while (@delegate != 0 && @delegate == 0);
|
||||
while (@delegate != onError)
|
||||
{
|
||||
}
|
||||
}
|
||||
[Token(Token = "0x60079D1")]
|
||||
[Address(RVA = "0x6EEA60", Offset = "0x6ED460", VA = "0x1806EEA60")]
|
||||
[CompilerGenerated]
|
||||
remove
|
||||
{
|
||||
Action<HubConnection, string> onError;
|
||||
Delegate @delegate;
|
||||
do
|
||||
{
|
||||
onError = this.OnError;
|
||||
@delegate = Delegate.Remove(onError, value);
|
||||
}
|
||||
while (@delegate != 0 && @delegate == 0);
|
||||
while (@delegate != onError)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x140000B1 RID: 177
|
||||
// (add) Token: 0x060079D2 RID: 31186 RVA: 0x00194E68 File Offset: 0x00193068
|
||||
// (remove) Token: 0x060079D3 RID: 31187 RVA: 0x00194E90 File Offset: 0x00193090
|
||||
[Token(Token = "0x140000B1")]
|
||||
public event Action<HubConnection> OnClosed
|
||||
{
|
||||
[Token(Token = "0x60079D2")]
|
||||
[Address(RVA = "0x6EE600", Offset = "0x6ED000", VA = "0x1806EE600")]
|
||||
[CompilerGenerated]
|
||||
add
|
||||
{
|
||||
Action<HubConnection> onClosed;
|
||||
Delegate @delegate;
|
||||
do
|
||||
{
|
||||
onClosed = this.OnClosed;
|
||||
@delegate = Delegate.Combine(onClosed, value);
|
||||
}
|
||||
while (@delegate != 0 && @delegate == 0);
|
||||
while (@delegate != onClosed)
|
||||
{
|
||||
}
|
||||
}
|
||||
[Token(Token = "0x60079D3")]
|
||||
[Address(RVA = "0x6EE920", Offset = "0x6ED320", VA = "0x1806EE920")]
|
||||
[CompilerGenerated]
|
||||
remove
|
||||
{
|
||||
Action<HubConnection> onClosed;
|
||||
Delegate @delegate;
|
||||
do
|
||||
{
|
||||
onClosed = this.OnClosed;
|
||||
@delegate = Delegate.Remove(onClosed, value);
|
||||
}
|
||||
while (@delegate != 0 && @delegate == 0);
|
||||
while (@delegate != onClosed)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x140000B2 RID: 178
|
||||
// (add) Token: 0x060079D4 RID: 31188 RVA: 0x00194EB8 File Offset: 0x001930B8
|
||||
// (remove) Token: 0x060079D5 RID: 31189 RVA: 0x00194EE0 File Offset: 0x001930E0
|
||||
[Token(Token = "0x140000B2")]
|
||||
public event Func<HubConnection, Message, bool> OnMessage
|
||||
{
|
||||
[Token(Token = "0x60079D4")]
|
||||
[Address(RVA = "0x6EE7E0", Offset = "0x6ED1E0", VA = "0x1806EE7E0")]
|
||||
[CompilerGenerated]
|
||||
add
|
||||
{
|
||||
Func<HubConnection, Message, bool> onMessage;
|
||||
Delegate @delegate;
|
||||
do
|
||||
{
|
||||
onMessage = this.OnMessage;
|
||||
@delegate = Delegate.Combine(onMessage, value);
|
||||
}
|
||||
while (@delegate != 0 && @delegate == 0);
|
||||
while (@delegate != onMessage)
|
||||
{
|
||||
}
|
||||
}
|
||||
[Token(Token = "0x60079D5")]
|
||||
[Address(RVA = "0x6EEB00", Offset = "0x6ED500", VA = "0x1806EEB00")]
|
||||
[CompilerGenerated]
|
||||
remove
|
||||
{
|
||||
Func<HubConnection, Message, bool> onMessage;
|
||||
Delegate @delegate;
|
||||
do
|
||||
{
|
||||
onMessage = this.OnMessage;
|
||||
@delegate = Delegate.Remove(onMessage, value);
|
||||
}
|
||||
while (@delegate != 0 && @delegate == 0);
|
||||
while (@delegate != onMessage)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170013D7 RID: 5079
|
||||
// (get) Token: 0x060079D6 RID: 31190 RVA: 0x00194F08 File Offset: 0x00193108
|
||||
// (set) Token: 0x060079D7 RID: 31191 RVA: 0x00194F1C File Offset: 0x0019311C
|
||||
[Token(Token = "0x170013D7")]
|
||||
public IAuthenticationProvider AuthenticationProvider
|
||||
{
|
||||
[Token(Token = "0x60079D6")]
|
||||
[Address(RVA = "0x4B81A0", Offset = "0x4B6BA0", VA = "0x1804B81A0")]
|
||||
get;
|
||||
[Token(Token = "0x60079D7")]
|
||||
[Address(RVA = "0x3EDEB0", Offset = "0x3EC8B0", VA = "0x1803EDEB0")]
|
||||
set;
|
||||
}
|
||||
|
||||
// Token: 0x170013D8 RID: 5080
|
||||
// (get) Token: 0x060079D8 RID: 31192 RVA: 0x00194F30 File Offset: 0x00193130
|
||||
// (set) Token: 0x060079D9 RID: 31193 RVA: 0x00194F44 File Offset: 0x00193144
|
||||
[Token(Token = "0x170013D8")]
|
||||
public NegotiationResult NegotiationResult
|
||||
{
|
||||
[Token(Token = "0x60079D8")]
|
||||
[Address(RVA = "0x3EDE90", Offset = "0x3EC890", VA = "0x1803EDE90")]
|
||||
get;
|
||||
[Token(Token = "0x60079D9")]
|
||||
[Address(RVA = "0x3EDEC0", Offset = "0x3EC8C0", VA = "0x1803EDEC0")]
|
||||
private set;
|
||||
}
|
||||
|
||||
// Token: 0x170013D9 RID: 5081
|
||||
// (get) Token: 0x060079DA RID: 31194 RVA: 0x00194F58 File Offset: 0x00193158
|
||||
// (set) Token: 0x060079DB RID: 31195 RVA: 0x00194F6C File Offset: 0x0019316C
|
||||
[Token(Token = "0x170013D9")]
|
||||
public HubOptions Options
|
||||
{
|
||||
[Token(Token = "0x60079DA")]
|
||||
[Address(RVA = "0x48F050", Offset = "0x48DA50", VA = "0x18048F050")]
|
||||
get;
|
||||
[Token(Token = "0x60079DB")]
|
||||
[Address(RVA = "0x52F860", Offset = "0x52E260", VA = "0x18052F860")]
|
||||
private set;
|
||||
}
|
||||
|
||||
// Token: 0x170013DA RID: 5082
|
||||
// (get) Token: 0x060079DC RID: 31196 RVA: 0x00194F80 File Offset: 0x00193180
|
||||
// (set) Token: 0x060079DD RID: 31197 RVA: 0x00194F94 File Offset: 0x00193194
|
||||
[Token(Token = "0x170013DA")]
|
||||
public int RedirectCount
|
||||
{
|
||||
[Token(Token = "0x60079DC")]
|
||||
[Address(RVA = "0x567E50", Offset = "0x566850", VA = "0x180567E50")]
|
||||
get;
|
||||
[Token(Token = "0x60079DD")]
|
||||
[Address(RVA = "0x6D78D0", Offset = "0x6D62D0", VA = "0x1806D78D0")]
|
||||
private set;
|
||||
}
|
||||
|
||||
// Token: 0x060079DE RID: 31198 RVA: 0x00194FA8 File Offset: 0x001931A8
|
||||
[Token(Token = "0x60079DE")]
|
||||
[Address(RVA = "0x6EE340", Offset = "0x6ECD40", VA = "0x1806EE340")]
|
||||
public HubConnection(Uri hubUri, IProtocol protocol)
|
||||
{
|
||||
HubOptions hubOptions = new HubOptions();
|
||||
hubOptions.<SkipNegotiation>k__BackingField = false;
|
||||
hubOptions.<PreferedTransport>k__BackingField = (TransportTypes)((ulong)0L);
|
||||
TimeSpan timeSpan;
|
||||
hubOptions.<PingInterval>k__BackingField = timeSpan;
|
||||
hubOptions.<MaxRedirects>k__BackingField = (int)((ulong)100L);
|
||||
}
|
||||
|
||||
// Token: 0x060079DF RID: 31199 RVA: 0x00194FDC File Offset: 0x001931DC
|
||||
[Token(Token = "0x60079DF")]
|
||||
[Address(RVA = "0x6EE420", Offset = "0x6ECE20", VA = "0x1806EE420")]
|
||||
public HubConnection(Uri hubUri, IProtocol protocol, HubOptions options)
|
||||
{
|
||||
Dictionary<long, Action<Message>> dictionary = new Dictionary();
|
||||
this.invocations = dictionary;
|
||||
Dictionary<string, Subscription> dictionary2 = new Dictionary(StringComparer._ordinalIgnoreCase);
|
||||
this.subscriptions = dictionary2;
|
||||
base..ctor();
|
||||
int num = 0;
|
||||
this.Uri = hubUri;
|
||||
this.State = (ConnectionStates)num;
|
||||
this.Options = options;
|
||||
this.Protocol = protocol;
|
||||
num += num;
|
||||
num++;
|
||||
DefaultAccessTokenAuthenticator defaultAccessTokenAuthenticator = new DefaultAccessTokenAuthenticator(this);
|
||||
this.AuthenticationProvider = defaultAccessTokenAuthenticator;
|
||||
}
|
||||
|
||||
// Token: 0x060079E0 RID: 31200 RVA: 0x00195048 File Offset: 0x00193248
|
||||
[Token(Token = "0x60079E0")]
|
||||
[Address(RVA = "0x6EDB70", Offset = "0x6EC570", VA = "0x1806EDB70")]
|
||||
public void StartConnect()
|
||||
{
|
||||
ConnectionStates connectionStates = this.<State>k__BackingField;
|
||||
int num = 0;
|
||||
if (connectionStates != ConnectionStates.Initial && connectionStates != ConnectionStates.Redirected)
|
||||
{
|
||||
ILogger logger = HTTPManager.Logger;
|
||||
ConnectionStates connectionStates2 = this.<State>k__BackingField;
|
||||
return;
|
||||
}
|
||||
ILogger logger2 = HTTPManager.Logger;
|
||||
if (this.<AuthenticationProvider>k__BackingField != 0)
|
||||
{
|
||||
if (num < typeof(ILogger).TypeHandle)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
if (num != 0)
|
||||
{
|
||||
ILogger logger3 = HTTPManager.Logger;
|
||||
int num2 = 0;
|
||||
this.SetState(ConnectionStates.Authenticating, num2);
|
||||
IAuthenticationProvider authenticationProvider = this.<AuthenticationProvider>k__BackingField;
|
||||
OnAuthenticationSuccededDelegate onAuthenticationSuccededDelegate;
|
||||
onAuthenticationSuccededDelegate.method_ptr = ldftn(OnAuthenticationSucceded);
|
||||
onAuthenticationSuccededDelegate.method = ldftn(OnAuthenticationSucceded);
|
||||
onAuthenticationSuccededDelegate.m_target = this;
|
||||
IAuthenticationProvider authenticationProvider2 = this.<AuthenticationProvider>k__BackingField;
|
||||
OnAuthenticationFailedDelegate onAuthenticationFailedDelegate;
|
||||
onAuthenticationFailedDelegate.method_ptr = ldftn(OnAuthenticationFailed);
|
||||
onAuthenticationFailedDelegate.method = ldftn(OnAuthenticationFailed);
|
||||
onAuthenticationFailedDelegate.m_target = this;
|
||||
IAuthenticationProvider authenticationProvider3 = this.<AuthenticationProvider>k__BackingField;
|
||||
return;
|
||||
}
|
||||
}
|
||||
this.StartNegotiation();
|
||||
}
|
||||
|
||||
// Token: 0x060079E1 RID: 31201 RVA: 0x0019512C File Offset: 0x0019332C
|
||||
[Token(Token = "0x60079E1")]
|
||||
[Address(RVA = "0x6EBFB0", Offset = "0x6EA9B0", VA = "0x1806EBFB0")]
|
||||
private void OnAuthenticationSucceded(IAuthenticationProvider provider)
|
||||
{
|
||||
ILogger logger = HTTPManager.Logger;
|
||||
IAuthenticationProvider authenticationProvider = this.<AuthenticationProvider>k__BackingField;
|
||||
OnAuthenticationSuccededDelegate onAuthenticationSuccededDelegate;
|
||||
onAuthenticationSuccededDelegate.method_ptr = ldftn(OnAuthenticationSucceded);
|
||||
onAuthenticationSuccededDelegate.method = ldftn(OnAuthenticationSucceded);
|
||||
onAuthenticationSuccededDelegate.m_target = this;
|
||||
IAuthenticationProvider authenticationProvider2 = this.<AuthenticationProvider>k__BackingField;
|
||||
OnAuthenticationFailedDelegate onAuthenticationFailedDelegate;
|
||||
onAuthenticationFailedDelegate.method_ptr = ldftn(OnAuthenticationFailed);
|
||||
onAuthenticationFailedDelegate.method = ldftn(OnAuthenticationFailed);
|
||||
onAuthenticationFailedDelegate.m_target = this;
|
||||
this.StartNegotiation();
|
||||
}
|
||||
|
||||
// Token: 0x060079E2 RID: 31202 RVA: 0x001951A0 File Offset: 0x001933A0
|
||||
[Token(Token = "0x60079E2")]
|
||||
[Address(RVA = "0x6EBE70", Offset = "0x6EA870", VA = "0x1806EBE70")]
|
||||
private void OnAuthenticationFailed(IAuthenticationProvider provider, string reason)
|
||||
{
|
||||
ILogger logger = HTTPManager.Logger;
|
||||
string text = "OnAuthenticationFailed: " + reason;
|
||||
IAuthenticationProvider authenticationProvider = this.<AuthenticationProvider>k__BackingField;
|
||||
OnAuthenticationSuccededDelegate onAuthenticationSuccededDelegate;
|
||||
onAuthenticationSuccededDelegate.method_ptr = ldftn(OnAuthenticationSucceded);
|
||||
onAuthenticationSuccededDelegate.method = ldftn(OnAuthenticationSucceded);
|
||||
onAuthenticationSuccededDelegate.m_target = this;
|
||||
IAuthenticationProvider authenticationProvider2 = this.<AuthenticationProvider>k__BackingField;
|
||||
OnAuthenticationFailedDelegate onAuthenticationFailedDelegate;
|
||||
onAuthenticationFailedDelegate.method_ptr = ldftn(OnAuthenticationFailed);
|
||||
onAuthenticationFailedDelegate.method = ldftn(OnAuthenticationFailed);
|
||||
onAuthenticationFailedDelegate.m_target = this;
|
||||
this.SetState(ConnectionStates.Closed, reason);
|
||||
}
|
||||
|
||||
// Token: 0x060079E3 RID: 31203 RVA: 0x00195224 File Offset: 0x00193424
|
||||
[Token(Token = "0x60079E3")]
|
||||
[Address(RVA = "0x6EDE80", Offset = "0x6EC880", VA = "0x1806EDE80")]
|
||||
private void StartNegotiation()
|
||||
{
|
||||
ILogger logger = HTTPManager.Logger;
|
||||
if (this.<State>k__BackingField != ConnectionStates.CloseInitiated)
|
||||
{
|
||||
if (!this.<Options>k__BackingField.<SkipNegotiation>k__BackingField)
|
||||
{
|
||||
int num = 0;
|
||||
this.SetState(ConnectionStates.Negotiating, num);
|
||||
UriBuilder uriBuilder = new UriBuilder(this.<Uri>k__BackingField);
|
||||
if (!uriBuilder._path.EndsWith("/"))
|
||||
{
|
||||
string text = uriBuilder._path + "/";
|
||||
uriBuilder.Path = text;
|
||||
}
|
||||
string text2 = uriBuilder._path + "negotiate";
|
||||
uriBuilder.Path = text2;
|
||||
Uri uri = uriBuilder.Uri;
|
||||
Action<NEBIGEDJGPP, HOOILIHKMEG> action = new Action(this.OnNegotiationRequestFinished);
|
||||
int num2 = 0;
|
||||
if (this.<AuthenticationProvider>k__BackingField != 0 && num2 < uri)
|
||||
{
|
||||
num2 += num2;
|
||||
num2++;
|
||||
}
|
||||
NEBIGEDJGPP nebigedjgpp;
|
||||
IEnumerator enumerator = nebigedjgpp.GDOIHJPIPBM();
|
||||
return;
|
||||
}
|
||||
ILogger logger2 = HTTPManager.Logger;
|
||||
this.ConnectImpl();
|
||||
}
|
||||
int num3 = 0;
|
||||
this.SetState(ConnectionStates.Closed, num3);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x060079E4 RID: 31204 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x60079E4")]
|
||||
[Address(RVA = "0x6EB8D0", Offset = "0x6EA2D0", VA = "0x1806EB8D0")]
|
||||
private void ConnectImpl()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x060079E5 RID: 31205 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x60079E5")]
|
||||
[Address(RVA = "0x6EBD80", Offset = "0x6EA780", VA = "0x1806EBD80")]
|
||||
private bool IsTransportSupported(string transportName)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x060079E6 RID: 31206 RVA: 0x00195324 File Offset: 0x00193524
|
||||
[Token(Token = "0x60079E6")]
|
||||
[Address(RVA = "0x6EC7D0", Offset = "0x6EB1D0", VA = "0x1806EC7D0")]
|
||||
private void OnNegotiationRequestFinished(NEBIGEDJGPP req, HOOILIHKMEG resp)
|
||||
{
|
||||
while (this.<State>k__BackingField != ConnectionStates.CloseInitiated)
|
||||
{
|
||||
string text = req.GLGCGFDLEJE();
|
||||
if (text == 0)
|
||||
{
|
||||
if (!resp.HIOBKPKOMLL)
|
||||
{
|
||||
int num = resp.LLODNIOIDKE;
|
||||
string text2 = resp.DFPPNHINEFO;
|
||||
string text3 = resp.DKPCLPHKFDI;
|
||||
int num2;
|
||||
string text4 = string.Format("Negotiation Request Finished Successfully, but the server sent an error. Status Code: {0}-{1} Message: {2}", num2, text2, text3);
|
||||
}
|
||||
ILogger logger = HTTPManager.Logger;
|
||||
string text5 = resp.DKPCLPHKFDI;
|
||||
string text6 = "Negotiation Request Finished Successfully! Response: " + text5;
|
||||
int num3 = 0;
|
||||
NegotiationResult negotiationResult = NegotiationResult.Parse(resp.DKPCLPHKFDI, num3, this);
|
||||
this.<NegotiationResult>k__BackingField = negotiationResult;
|
||||
if (negotiationResult == 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
Uri <Url>k__BackingField = this.<NegotiationResult>k__BackingField.<Url>k__BackingField;
|
||||
int num4 = 0;
|
||||
if (!(<Url>k__BackingField != num4))
|
||||
{
|
||||
this.ConnectImpl();
|
||||
}
|
||||
int num5 = 0;
|
||||
this.SetState(ConnectionStates.Redirected, num5);
|
||||
int num6 = this.<RedirectCount>k__BackingField;
|
||||
num6++;
|
||||
this.<RedirectCount>k__BackingField = num6;
|
||||
HubOptions hubOptions = this.<Options>k__BackingField;
|
||||
int <MaxRedirects>k__BackingField = hubOptions.<MaxRedirects>k__BackingField;
|
||||
if (num6 < <MaxRedirects>k__BackingField)
|
||||
{
|
||||
Uri uri = this.<Uri>k__BackingField;
|
||||
NegotiationResult negotiationResult2 = this.<NegotiationResult>k__BackingField;
|
||||
Uri <Url>k__BackingField2 = negotiationResult2.<Url>k__BackingField;
|
||||
this.<Uri>k__BackingField = <Url>k__BackingField2;
|
||||
if (!string.IsNullOrEmpty(negotiationResult2.<AccessToken>k__BackingField))
|
||||
{
|
||||
BearerTokenAuthProvider bearerTokenAuthProvider = new BearerTokenAuthProvider(this.<NegotiationResult>k__BackingField.<AccessToken>k__BackingField);
|
||||
this.<AuthenticationProvider>k__BackingField = bearerTokenAuthProvider;
|
||||
}
|
||||
if (this.OnRedirected != (ulong)0L)
|
||||
{
|
||||
Action<HubConnection, Uri, Uri> onRedirected = this.OnRedirected;
|
||||
Uri uri2 = this.<Uri>k__BackingField;
|
||||
onRedirected(this, uri, uri2);
|
||||
ILogger logger2 = HTTPManager.Logger;
|
||||
}
|
||||
this.StartConnect();
|
||||
}
|
||||
string text7 = string.Format("MaxRedirects ({0:N0}) reached!", hubOptions);
|
||||
}
|
||||
if ("Negotiation Request: " + text != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
return;
|
||||
}
|
||||
int num7 = 0;
|
||||
this.SetState(ConnectionStates.Closed, num7);
|
||||
}
|
||||
|
||||
// Token: 0x060079E7 RID: 31207 RVA: 0x001954D0 File Offset: 0x001936D0
|
||||
[Token(Token = "0x60079E7")]
|
||||
[Address(RVA = "0x6EDAB0", Offset = "0x6EC4B0", VA = "0x1806EDAB0")]
|
||||
public void StartClose()
|
||||
{
|
||||
ILogger logger = HTTPManager.Logger;
|
||||
int num = 0;
|
||||
this.SetState(ConnectionStates.CloseInitiated, num);
|
||||
if (this.<Transport>k__BackingField != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060079E8 RID: 31208 RVA: 0x00195500 File Offset: 0x00193700
|
||||
[Token(Token = "0x60079E8")]
|
||||
[Address(RVA = "0x1FA8300", Offset = "0x1FA6D00", VA = "0x181FA8300")]
|
||||
public IFuture Stream<TResult>(string cpp2il__autoParamName__idx_0, object[] cpp2il__autoParamName__idx_1)
|
||||
{
|
||||
Action<Message> action;
|
||||
ulong num2;
|
||||
long num = this.InvokeImp(cpp2il__autoParamName__idx_0, cpp2il__autoParamName__idx_1, action, num2 != 0UL);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x060079E9 RID: 31209 RVA: 0x00195520 File Offset: 0x00193720
|
||||
[Token(Token = "0x60079E9")]
|
||||
[Address(RVA = "0x2042490", Offset = "0x2040E90", VA = "0x182042490")]
|
||||
public void CancelStream<T>(StreamItemContainer cpp2il__autoParamName__idx_0)
|
||||
{
|
||||
long id = cpp2il__autoParamName__idx_0.id;
|
||||
}
|
||||
|
||||
// Token: 0x060079EA RID: 31210 RVA: 0x00195540 File Offset: 0x00193740
|
||||
[Token(Token = "0x60079EA")]
|
||||
[Address(RVA = "0x1FA8040", Offset = "0x1FA6A40", VA = "0x181FA8040")]
|
||||
public IFuture Invoke<TResult>(string cpp2il__autoParamName__idx_0, object[] cpp2il__autoParamName__idx_1)
|
||||
{
|
||||
Action<Message> action;
|
||||
ulong num2;
|
||||
long num = this.InvokeImp(cpp2il__autoParamName__idx_0, cpp2il__autoParamName__idx_1, action, num2 != 0UL);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x060079EB RID: 31211 RVA: 0x00195560 File Offset: 0x00193760
|
||||
[Token(Token = "0x60079EB")]
|
||||
[Address(RVA = "0x6ECFA0", Offset = "0x6EB9A0", VA = "0x1806ECFA0")]
|
||||
public IFuture<bool> Send(string target, params object[] args)
|
||||
{
|
||||
Future<bool> future4 = new Future();
|
||||
Future<bool> future = future4;
|
||||
Action<Message> action = delegate(Message message)
|
||||
{
|
||||
int num2 = 0;
|
||||
Future<bool> future3 = future;
|
||||
Exception ex = new Exception(num2);
|
||||
future3.Fail(ex);
|
||||
};
|
||||
if (this.<State>k__BackingField == ConnectionStates.Connected && action != 0)
|
||||
{
|
||||
long num;
|
||||
this.invocations.Add(num, action);
|
||||
}
|
||||
Future<bool> future2 = future;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x060079EC RID: 31212 RVA: 0x001955BC File Offset: 0x001937BC
|
||||
[Token(Token = "0x60079EC")]
|
||||
[Address(RVA = "0x6EBC20", Offset = "0x6EA620", VA = "0x1806EBC20")]
|
||||
private long InvokeImp(string target, object[] args, Action<Message> callback, bool isStreamingInvocation = false)
|
||||
{
|
||||
if (this.<State>k__BackingField == ConnectionStates.Connected && callback != 0)
|
||||
{
|
||||
long num;
|
||||
this.invocations.Add(num, callback);
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x060079ED RID: 31213 RVA: 0x001955EC File Offset: 0x001937EC
|
||||
[Token(Token = "0x60079ED")]
|
||||
[Address(RVA = "0x6ECE60", Offset = "0x6EB860", VA = "0x1806ECE60")]
|
||||
private void SendMessage(Message message)
|
||||
{
|
||||
IProtocol protocol = this.<Protocol>k__BackingField;
|
||||
int num = 0;
|
||||
num += num;
|
||||
num++;
|
||||
bool nonblocking = message.nonblocking;
|
||||
object[] arguments = message.arguments;
|
||||
object result = message.result;
|
||||
ITransport transport = this.<Transport>k__BackingField;
|
||||
DateTime utcNow = DateTime.UtcNow;
|
||||
this.lastMessageSent = utcNow;
|
||||
}
|
||||
|
||||
// Token: 0x060079EE RID: 31214 RVA: 0x00195640 File Offset: 0x00193840
|
||||
[Token(Token = "0x60079EE")]
|
||||
[Address(RVA = "0x6ECBA0", Offset = "0x6EB5A0", VA = "0x1806ECBA0")]
|
||||
public void On(string methodName, Action callback)
|
||||
{
|
||||
Action<object[]> action = delegate(object[] args)
|
||||
{
|
||||
callback();
|
||||
};
|
||||
Dictionary<string, Subscription> dictionary = this.subscriptions;
|
||||
bool flag;
|
||||
if (!flag)
|
||||
{
|
||||
Dictionary<string, Subscription> dictionary2 = this.subscriptions;
|
||||
List<CallbackDescriptor> list = new List(1);
|
||||
Subscription subscription;
|
||||
subscription.callbacks = list;
|
||||
dictionary2.Add(methodName, subscription);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060079EF RID: 31215 RVA: 0x0019569C File Offset: 0x0019389C
|
||||
[Token(Token = "0x60079EF")]
|
||||
[Address(RVA = "0x2042CD0", Offset = "0x20416D0", VA = "0x182042CD0")]
|
||||
public void On<T1>(string cpp2il__autoParamName__idx_0, Action cpp2il__autoParamName__idx_1)
|
||||
{
|
||||
Type[] array = new Type[1];
|
||||
Type typeFromHandle = typeof(Type);
|
||||
if (typeFromHandle != 0)
|
||||
{
|
||||
}
|
||||
array[0] = typeFromHandle;
|
||||
Action<object[]> action;
|
||||
this.On(cpp2il__autoParamName__idx_0, array, action);
|
||||
}
|
||||
|
||||
// Token: 0x060079F0 RID: 31216 RVA: 0x001956D8 File Offset: 0x001938D8
|
||||
[Token(Token = "0x60079F0")]
|
||||
[Address(RVA = "0x2042AF0", Offset = "0x20414F0", VA = "0x182042AF0")]
|
||||
public void On<T1, T2>(string cpp2il__autoParamName__idx_0, Action cpp2il__autoParamName__idx_1)
|
||||
{
|
||||
Type[] array = new Type[2];
|
||||
Type typeFromHandle = typeof(Type);
|
||||
if (typeFromHandle != 0)
|
||||
{
|
||||
}
|
||||
array[0] = typeFromHandle;
|
||||
Type type;
|
||||
if (type != 0)
|
||||
{
|
||||
}
|
||||
array[1] = type;
|
||||
Action<object[]> action;
|
||||
this.On(cpp2il__autoParamName__idx_0, array, action);
|
||||
}
|
||||
|
||||
// Token: 0x060079F1 RID: 31217 RVA: 0x00195720 File Offset: 0x00193920
|
||||
[Token(Token = "0x60079F1")]
|
||||
[Address(RVA = "0x20428B0", Offset = "0x20412B0", VA = "0x1820428B0")]
|
||||
public void On<T1, T2, T3>(string methodName, Action<T1, T2, T3> callback)
|
||||
{
|
||||
Type[] array = new Type[3];
|
||||
Type typeFromHandle = typeof(Type);
|
||||
if (typeFromHandle != 0)
|
||||
{
|
||||
}
|
||||
array[0] = typeFromHandle;
|
||||
Type type;
|
||||
if (type != 0)
|
||||
{
|
||||
}
|
||||
array[1] = type;
|
||||
Type type2;
|
||||
if (type2 != 0)
|
||||
{
|
||||
}
|
||||
array[2] = type2;
|
||||
Action<object[]> action;
|
||||
this.On(methodName, array, action);
|
||||
}
|
||||
|
||||
// Token: 0x060079F2 RID: 31218 RVA: 0x00195774 File Offset: 0x00193974
|
||||
[Token(Token = "0x60079F2")]
|
||||
[Address(RVA = "0x2042610", Offset = "0x2041010", VA = "0x182042610")]
|
||||
public void On<T1, T2, T3, T4>(string methodName, Action<T1, T2, T3, T4> callback)
|
||||
{
|
||||
Type[] array = new Type[4];
|
||||
Type typeFromHandle = typeof(Type);
|
||||
if (typeFromHandle != 0)
|
||||
{
|
||||
}
|
||||
array[0] = typeFromHandle;
|
||||
Type type;
|
||||
if (type != 0)
|
||||
{
|
||||
}
|
||||
array[1] = type;
|
||||
Type type2;
|
||||
if (type2 != 0)
|
||||
{
|
||||
}
|
||||
array[2] = type2;
|
||||
Type type3;
|
||||
if (type3 != 0)
|
||||
{
|
||||
}
|
||||
array[3] = type3;
|
||||
Action<object[]> action;
|
||||
this.On(methodName, array, action);
|
||||
}
|
||||
|
||||
// Token: 0x060079F3 RID: 31219 RVA: 0x001957D8 File Offset: 0x001939D8
|
||||
[Token(Token = "0x60079F3")]
|
||||
[Address(RVA = "0x6ECD30", Offset = "0x6EB730", VA = "0x1806ECD30")]
|
||||
public void On(string methodName, Type[] paramTypes, Action<object[]> callback)
|
||||
{
|
||||
Dictionary<string, Subscription> dictionary = this.subscriptions;
|
||||
bool flag;
|
||||
if (!flag)
|
||||
{
|
||||
Dictionary<string, Subscription> dictionary2 = this.subscriptions;
|
||||
List<CallbackDescriptor> list = new List(1);
|
||||
Subscription subscription;
|
||||
subscription.callbacks = list;
|
||||
dictionary2.Add(methodName, subscription);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060079F4 RID: 31220 RVA: 0x00195818 File Offset: 0x00193A18
|
||||
[Token(Token = "0x60079F4")]
|
||||
[Address(RVA = "0x6EC0D0", Offset = "0x6EAAD0", VA = "0x1806EC0D0")]
|
||||
internal void OnMessages(List<Message> messages)
|
||||
{
|
||||
ThrowHelper.ThrowArgumentOutOfRangeException();
|
||||
bool flag;
|
||||
if (this.OnMessage == 0 || !flag)
|
||||
{
|
||||
}
|
||||
ILogger logger = HTTPManager.Logger;
|
||||
int num = 0;
|
||||
if (logger <= (ulong)6L)
|
||||
{
|
||||
Dictionary<string, Subscription> dictionary = this.subscriptions;
|
||||
bool flag2;
|
||||
if (flag2 && num < (flag2 ? 1 : 0))
|
||||
{
|
||||
ThrowHelper.ThrowArgumentOutOfRangeException();
|
||||
num += 2;
|
||||
num += num;
|
||||
IProtocol protocol = this.<Protocol>k__BackingField;
|
||||
ILogger logger2 = HTTPManager.Logger;
|
||||
ILogger logger3 = HTTPManager.Logger;
|
||||
num++;
|
||||
bool flag3;
|
||||
if (flag3)
|
||||
{
|
||||
Dictionary<long, Action<Message>> dictionary2 = this.invocations;
|
||||
bool flag4;
|
||||
if (flag4)
|
||||
{
|
||||
ILogger logger4 = HTTPManager.Logger;
|
||||
bool flag5;
|
||||
if (flag5)
|
||||
{
|
||||
Dictionary<long, Action<Message>> dictionary3 = this.invocations;
|
||||
bool flag6;
|
||||
if (flag6)
|
||||
{
|
||||
ILogger logger5 = HTTPManager.Logger;
|
||||
}
|
||||
Dictionary<long, Action<Message>> dictionary4 = this.invocations;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060079F5 RID: 31221 RVA: 0x001958F0 File Offset: 0x00193AF0
|
||||
[Token(Token = "0x60079F5")]
|
||||
[Address(RVA = "0x6EE150", Offset = "0x6ECB50", VA = "0x1806EE150")]
|
||||
private void Transport_OnStateChanged(TransportStates oldState, TransportStates newState)
|
||||
{
|
||||
ILogger logger = HTTPManager.Logger;
|
||||
ILogger logger2 = logger;
|
||||
if (logger != 0)
|
||||
{
|
||||
if (logger != 0)
|
||||
{
|
||||
if (logger == 0)
|
||||
{
|
||||
ITransport transport = this.<Transport>k__BackingField;
|
||||
goto IL_2B;
|
||||
}
|
||||
if (logger2 == (ulong)1L)
|
||||
{
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
IL_2B:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x060079F6 RID: 31222 RVA: 0x00195930 File Offset: 0x00193B30
|
||||
[Token(Token = "0x60079F6")]
|
||||
[Address(RVA = "0x6ED170", Offset = "0x6EBB70", VA = "0x1806ED170")]
|
||||
private void SetState(ConnectionStates state, [Optional] string errorReason)
|
||||
{
|
||||
ILogger logger = HTTPManager.Logger;
|
||||
string[] array = new string[7];
|
||||
if ("SetState - from State: '" != 0)
|
||||
{
|
||||
}
|
||||
array[0] = "SetState - from State: '";
|
||||
ConnectionStates connectionStates;
|
||||
int num = connectionStates.GetHashCode();
|
||||
if (num != 0)
|
||||
{
|
||||
}
|
||||
array[1] = num;
|
||||
if ("' to State: '" != 0)
|
||||
{
|
||||
}
|
||||
array[2] = "' to State: '";
|
||||
int num2;
|
||||
num = num2;
|
||||
if (num != 0)
|
||||
{
|
||||
}
|
||||
array[3] = num;
|
||||
if ("' errorReason: '" != 0)
|
||||
{
|
||||
}
|
||||
array[4] = "' errorReason: '";
|
||||
if (errorReason != 0)
|
||||
{
|
||||
}
|
||||
array[5] = errorReason;
|
||||
if ("'" != 0)
|
||||
{
|
||||
}
|
||||
array[6] = "'";
|
||||
string text = string.Concat(array);
|
||||
ILogger logger2 = HTTPManager.Logger;
|
||||
string[] array2 = new string[5];
|
||||
if ("SetState - from State: '" != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = "SetState - from State: '";
|
||||
ConnectionStates connectionStates2;
|
||||
int num3 = connectionStates2.GetHashCode();
|
||||
if (num3 != 0)
|
||||
{
|
||||
}
|
||||
array2[1] = num3;
|
||||
if ("' to State: '" != 0)
|
||||
{
|
||||
}
|
||||
array2[2] = "' to State: '";
|
||||
int num4;
|
||||
num3 = num4;
|
||||
if (num3 != 0)
|
||||
{
|
||||
}
|
||||
array2[3] = num3;
|
||||
if ("'" != 0)
|
||||
{
|
||||
}
|
||||
array2[4] = "'";
|
||||
string text2 = string.Concat(array2);
|
||||
if (this.<State>k__BackingField != text2)
|
||||
{
|
||||
this.<State>k__BackingField = text2;
|
||||
if (text2 <= (ulong)6L)
|
||||
{
|
||||
Action<HubConnection> onConnected = this.OnConnected;
|
||||
if (onConnected != 0)
|
||||
{
|
||||
onConnected(this);
|
||||
}
|
||||
ILogger logger3 = HTTPManager.Logger;
|
||||
HTTPManager.Heartbeats.Subscribe(this);
|
||||
DateTime utcNow = DateTime.UtcNow;
|
||||
this.lastMessageSent = utcNow;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060079F7 RID: 31223 RVA: 0x00195B14 File Offset: 0x00193D14
|
||||
[Token(Token = "0x60079F7")]
|
||||
[Address(RVA = "0x6EB720", Offset = "0x6EA120", VA = "0x1806EB720", Slot = "4")]
|
||||
void IHeartbeat.OnHeartbeatUpdate(TimeSpan dif)
|
||||
{
|
||||
if (this.<State>k__BackingField == ConnectionStates.Connected)
|
||||
{
|
||||
TimeSpan <PingInterval>k__BackingField = this.<Options>k__BackingField.<PingInterval>k__BackingField;
|
||||
TimeSpan zero = TimeSpan.Zero;
|
||||
if (<PingInterval>k__BackingField != zero)
|
||||
{
|
||||
DateTime utcNow = DateTime.UtcNow;
|
||||
DateTime dateTime = this.lastMessageSent;
|
||||
TimeSpan timeSpan = utcNow - dateTime;
|
||||
TimeSpan <PingInterval>k__BackingField2 = this.<Options>k__BackingField.<PingInterval>k__BackingField;
|
||||
if (timeSpan >= <PingInterval>k__BackingField2)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040057E5 RID: 22501
|
||||
[Token(Token = "0x40057E5")]
|
||||
public static readonly object[] EmptyArgs = new object[0];
|
||||
|
||||
// Token: 0x040057F3 RID: 22515
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x78")]
|
||||
[Token(Token = "0x40057F3")]
|
||||
private long lastInvocationId;
|
||||
|
||||
// Token: 0x040057F4 RID: 22516
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x80")]
|
||||
[Token(Token = "0x40057F4")]
|
||||
private Dictionary<long, Action<Message>> invocations;
|
||||
|
||||
// Token: 0x040057F5 RID: 22517
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x88")]
|
||||
[Token(Token = "0x40057F5")]
|
||||
private Dictionary<string, Subscription> subscriptions;
|
||||
|
||||
// Token: 0x040057F6 RID: 22518
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x90")]
|
||||
[Token(Token = "0x40057F6")]
|
||||
private DateTime lastMessageSent;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SignalRCore
|
||||
{
|
||||
// Token: 0x020012FF RID: 4863
|
||||
[Token(Token = "0x20012FF")]
|
||||
[StructLayout(3)]
|
||||
public sealed class HubOptions
|
||||
{
|
||||
// Token: 0x170013CF RID: 5071
|
||||
// (get) Token: 0x060079BB RID: 31163 RVA: 0x00194C04 File Offset: 0x00192E04
|
||||
// (set) Token: 0x060079BC RID: 31164 RVA: 0x00194C18 File Offset: 0x00192E18
|
||||
[Token(Token = "0x170013CF")]
|
||||
public bool SkipNegotiation
|
||||
{
|
||||
[Token(Token = "0x60079BB")]
|
||||
[Address(RVA = "0x559440", Offset = "0x557E40", VA = "0x180559440")]
|
||||
get;
|
||||
[Token(Token = "0x60079BC")]
|
||||
[Address(RVA = "0x559450", Offset = "0x557E50", VA = "0x180559450")]
|
||||
set;
|
||||
}
|
||||
|
||||
// Token: 0x170013D0 RID: 5072
|
||||
// (get) Token: 0x060079BD RID: 31165 RVA: 0x00194C2C File Offset: 0x00192E2C
|
||||
// (set) Token: 0x060079BE RID: 31166 RVA: 0x00194C40 File Offset: 0x00192E40
|
||||
[Token(Token = "0x170013D0")]
|
||||
public TransportTypes PreferedTransport
|
||||
{
|
||||
[Token(Token = "0x60079BD")]
|
||||
[Address(RVA = "0x55D550", Offset = "0x55BF50", VA = "0x18055D550")]
|
||||
get;
|
||||
[Token(Token = "0x60079BE")]
|
||||
[Address(RVA = "0x55D5D0", Offset = "0x55BFD0", VA = "0x18055D5D0")]
|
||||
set;
|
||||
}
|
||||
|
||||
// Token: 0x170013D1 RID: 5073
|
||||
// (get) Token: 0x060079BF RID: 31167 RVA: 0x00194C54 File Offset: 0x00192E54
|
||||
// (set) Token: 0x060079C0 RID: 31168 RVA: 0x00194C68 File Offset: 0x00192E68
|
||||
[Token(Token = "0x170013D1")]
|
||||
public TimeSpan PingInterval
|
||||
{
|
||||
[Token(Token = "0x60079BF")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get;
|
||||
[Token(Token = "0x60079C0")]
|
||||
[Address(RVA = "0x3C1280", Offset = "0x3BFC80", VA = "0x1803C1280")]
|
||||
set;
|
||||
}
|
||||
|
||||
// Token: 0x170013D2 RID: 5074
|
||||
// (get) Token: 0x060079C1 RID: 31169 RVA: 0x00194C7C File Offset: 0x00192E7C
|
||||
// (set) Token: 0x060079C2 RID: 31170 RVA: 0x00194C90 File Offset: 0x00192E90
|
||||
[Token(Token = "0x170013D2")]
|
||||
public int MaxRedirects
|
||||
{
|
||||
[Token(Token = "0x60079C1")]
|
||||
[Address(RVA = "0x4FBD40", Offset = "0x4FA740", VA = "0x1804FBD40")]
|
||||
get;
|
||||
[Token(Token = "0x60079C2")]
|
||||
[Address(RVA = "0x4E90F0", Offset = "0x4E7AF0", VA = "0x1804E90F0")]
|
||||
set;
|
||||
}
|
||||
|
||||
// Token: 0x060079C3 RID: 31171 RVA: 0x00194CA4 File Offset: 0x00192EA4
|
||||
[Token(Token = "0x60079C3")]
|
||||
[Address(RVA = "0x6EEC40", Offset = "0x6ED640", VA = "0x1806EEC40")]
|
||||
public HubOptions()
|
||||
{
|
||||
this.SkipNegotiation = false;
|
||||
this.PreferedTransport = (TransportTypes)((ulong)0L);
|
||||
TimeSpan timeSpan;
|
||||
this.PingInterval = timeSpan;
|
||||
this.MaxRedirects = (int)((ulong)100L);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.WebSocket;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SignalRCore
|
||||
{
|
||||
// Token: 0x0200130B RID: 4875
|
||||
[Token(Token = "0x200130B")]
|
||||
[StructLayout(3)]
|
||||
public interface IAuthenticationProvider
|
||||
{
|
||||
// Token: 0x170013DB RID: 5083
|
||||
// (get) Token: 0x06007A11 RID: 31249
|
||||
[Token(Token = "0x170013DB")]
|
||||
bool IsPreAuthRequired
|
||||
{
|
||||
[Token(Token = "0x6007A11")]
|
||||
[Address(Slot = "0")]
|
||||
get;
|
||||
}
|
||||
|
||||
// Token: 0x140000B3 RID: 179
|
||||
// (add) Token: 0x06007A12 RID: 31250
|
||||
// (remove) Token: 0x06007A13 RID: 31251
|
||||
[Token(Token = "0x140000B3")]
|
||||
event OnAuthenticationSuccededDelegate OnAuthenticationSucceded;
|
||||
|
||||
// Token: 0x140000B4 RID: 180
|
||||
// (add) Token: 0x06007A14 RID: 31252
|
||||
// (remove) Token: 0x06007A15 RID: 31253
|
||||
[Token(Token = "0x140000B4")]
|
||||
event OnAuthenticationFailedDelegate OnAuthenticationFailed;
|
||||
|
||||
// Token: 0x06007A16 RID: 31254
|
||||
[Token(Token = "0x6007A16")]
|
||||
[Address(Slot = "5")]
|
||||
void StartAuthentication();
|
||||
|
||||
// Token: 0x06007A17 RID: 31255
|
||||
[Token(Token = "0x6007A17")]
|
||||
[Address(Slot = "6")]
|
||||
void PrepareRequest(NEBIGEDJGPP request);
|
||||
|
||||
// Token: 0x06007A18 RID: 31256
|
||||
[Token(Token = "0x6007A18")]
|
||||
[Address(Slot = "7")]
|
||||
void PrepareWebSocket(WebSocket webSocket);
|
||||
|
||||
// Token: 0x06007A19 RID: 31257
|
||||
[Token(Token = "0x6007A19")]
|
||||
[Address(Slot = "8")]
|
||||
Uri PrepareUri(Uri uri);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SignalRCore
|
||||
{
|
||||
// Token: 0x020012FB RID: 4859
|
||||
[Token(Token = "0x20012FB")]
|
||||
[StructLayout(3)]
|
||||
public interface IEncoder
|
||||
{
|
||||
// Token: 0x170013CC RID: 5068
|
||||
// (get) Token: 0x060079AB RID: 31147
|
||||
[Token(Token = "0x170013CC")]
|
||||
string Name
|
||||
{
|
||||
[Token(Token = "0x60079AB")]
|
||||
[Address(Slot = "0")]
|
||||
get;
|
||||
}
|
||||
|
||||
// Token: 0x060079AC RID: 31148
|
||||
[Token(Token = "0x60079AC")]
|
||||
[Address(Slot = "1")]
|
||||
string EncodeAsText<T>(T value);
|
||||
|
||||
// Token: 0x060079AD RID: 31149
|
||||
[Token(Token = "0x60079AD")]
|
||||
[Address(Slot = "2")]
|
||||
T DecodeAs<T>(string text);
|
||||
|
||||
// Token: 0x060079AE RID: 31150
|
||||
[Token(Token = "0x60079AE")]
|
||||
[Address(Slot = "3")]
|
||||
byte[] EncodeAsBinary<T>(T value);
|
||||
|
||||
// Token: 0x060079AF RID: 31151
|
||||
[Token(Token = "0x60079AF")]
|
||||
[Address(Slot = "4")]
|
||||
T DecodeAs<T>(byte[] data);
|
||||
|
||||
// Token: 0x060079B0 RID: 31152
|
||||
[Token(Token = "0x60079B0")]
|
||||
[Address(Slot = "5")]
|
||||
object ConvertTo(Type toType, object obj);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,73 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SignalRCore.Messages;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SignalRCore
|
||||
{
|
||||
// Token: 0x0200130C RID: 4876
|
||||
[Token(Token = "0x200130C")]
|
||||
[StructLayout(3)]
|
||||
public interface IProtocol
|
||||
{
|
||||
// Token: 0x170013DC RID: 5084
|
||||
// (get) Token: 0x06007A1A RID: 31258
|
||||
[Token(Token = "0x170013DC")]
|
||||
TransferModes Type
|
||||
{
|
||||
[Token(Token = "0x6007A1A")]
|
||||
[Address(Slot = "0")]
|
||||
get;
|
||||
}
|
||||
|
||||
// Token: 0x170013DD RID: 5085
|
||||
// (get) Token: 0x06007A1B RID: 31259
|
||||
[Token(Token = "0x170013DD")]
|
||||
IEncoder Encoder
|
||||
{
|
||||
[Token(Token = "0x6007A1B")]
|
||||
[Address(Slot = "1")]
|
||||
get;
|
||||
}
|
||||
|
||||
// Token: 0x170013DE RID: 5086
|
||||
// (get) Token: 0x06007A1C RID: 31260
|
||||
// (set) Token: 0x06007A1D RID: 31261
|
||||
[Token(Token = "0x170013DE")]
|
||||
HubConnection Connection
|
||||
{
|
||||
[Token(Token = "0x6007A1C")]
|
||||
[Address(Slot = "2")]
|
||||
get;
|
||||
[Token(Token = "0x6007A1D")]
|
||||
[Address(Slot = "3")]
|
||||
set;
|
||||
}
|
||||
|
||||
// Token: 0x06007A1E RID: 31262
|
||||
[Token(Token = "0x6007A1E")]
|
||||
[Address(Slot = "4")]
|
||||
void ParseMessages(string data, ref List<Message> messages);
|
||||
|
||||
// Token: 0x06007A1F RID: 31263
|
||||
[Token(Token = "0x6007A1F")]
|
||||
[Address(Slot = "5")]
|
||||
void ParseMessages(byte[] data, ref List<Message> messages);
|
||||
|
||||
// Token: 0x06007A20 RID: 31264
|
||||
[Token(Token = "0x6007A20")]
|
||||
[Address(Slot = "6")]
|
||||
byte[] EncodeMessage(Message message);
|
||||
|
||||
// Token: 0x06007A21 RID: 31265
|
||||
[Token(Token = "0x6007A21")]
|
||||
[Address(Slot = "7")]
|
||||
object[] GetRealArguments(Type[] argTypes, object[] arguments);
|
||||
|
||||
// Token: 0x06007A22 RID: 31266
|
||||
[Token(Token = "0x6007A22")]
|
||||
[Address(Slot = "8")]
|
||||
object ConvertTo(Type toType, object obj);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,73 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SignalRCore
|
||||
{
|
||||
// Token: 0x020012FA RID: 4858
|
||||
[Token(Token = "0x20012FA")]
|
||||
[StructLayout(3)]
|
||||
public interface ITransport
|
||||
{
|
||||
// Token: 0x170013C8 RID: 5064
|
||||
// (get) Token: 0x060079A2 RID: 31138
|
||||
[Token(Token = "0x170013C8")]
|
||||
TransferModes TransferMode
|
||||
{
|
||||
[Token(Token = "0x60079A2")]
|
||||
[Address(Slot = "0")]
|
||||
get;
|
||||
}
|
||||
|
||||
// Token: 0x170013C9 RID: 5065
|
||||
// (get) Token: 0x060079A3 RID: 31139
|
||||
[Token(Token = "0x170013C9")]
|
||||
TransportTypes TransportType
|
||||
{
|
||||
[Token(Token = "0x60079A3")]
|
||||
[Address(Slot = "1")]
|
||||
get;
|
||||
}
|
||||
|
||||
// Token: 0x170013CA RID: 5066
|
||||
// (get) Token: 0x060079A4 RID: 31140
|
||||
[Token(Token = "0x170013CA")]
|
||||
TransportStates State
|
||||
{
|
||||
[Token(Token = "0x60079A4")]
|
||||
[Address(Slot = "2")]
|
||||
get;
|
||||
}
|
||||
|
||||
// Token: 0x170013CB RID: 5067
|
||||
// (get) Token: 0x060079A5 RID: 31141
|
||||
[Token(Token = "0x170013CB")]
|
||||
string ErrorReason
|
||||
{
|
||||
[Token(Token = "0x60079A5")]
|
||||
[Address(Slot = "3")]
|
||||
get;
|
||||
}
|
||||
|
||||
// Token: 0x140000AD RID: 173
|
||||
// (add) Token: 0x060079A6 RID: 31142
|
||||
// (remove) Token: 0x060079A7 RID: 31143
|
||||
[Token(Token = "0x140000AD")]
|
||||
event Action<TransportStates, TransportStates> OnStateChanged;
|
||||
|
||||
// Token: 0x060079A8 RID: 31144
|
||||
[Token(Token = "0x60079A8")]
|
||||
[Address(Slot = "6")]
|
||||
void StartConnect();
|
||||
|
||||
// Token: 0x060079A9 RID: 31145
|
||||
[Token(Token = "0x60079A9")]
|
||||
[Address(Slot = "7")]
|
||||
void StartClose();
|
||||
|
||||
// Token: 0x060079AA RID: 31146
|
||||
[Token(Token = "0x60079AA")]
|
||||
[Address(Slot = "8")]
|
||||
void Send(byte[] msg);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,179 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
using BestHTTP.SignalRCore.Messages;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SignalRCore
|
||||
{
|
||||
// Token: 0x0200130D RID: 4877
|
||||
[Token(Token = "0x200130D")]
|
||||
[StructLayout(3)]
|
||||
public sealed class JsonProtocol : IProtocol
|
||||
{
|
||||
// Token: 0x170013DF RID: 5087
|
||||
// (get) Token: 0x06007A23 RID: 31267 RVA: 0x00196044 File Offset: 0x00194244
|
||||
[Token(Token = "0x170013DF")]
|
||||
public TransferModes Type
|
||||
{
|
||||
[Token(Token = "0x6007A23")]
|
||||
[Address(RVA = "0x3E2800", Offset = "0x3E1200", VA = "0x1803E2800", Slot = "4")]
|
||||
get
|
||||
{
|
||||
return TransferModes.Text;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170013E0 RID: 5088
|
||||
// (get) Token: 0x06007A24 RID: 31268 RVA: 0x00196054 File Offset: 0x00194254
|
||||
// (set) Token: 0x06007A25 RID: 31269 RVA: 0x00196068 File Offset: 0x00194268
|
||||
[Token(Token = "0x170013E0")]
|
||||
public IEncoder Encoder
|
||||
{
|
||||
[Token(Token = "0x6007A24")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "5")]
|
||||
get;
|
||||
[Token(Token = "0x6007A25")]
|
||||
[Address(RVA = "0x3C39B0", Offset = "0x3C23B0", VA = "0x1803C39B0")]
|
||||
private set;
|
||||
}
|
||||
|
||||
// Token: 0x170013E1 RID: 5089
|
||||
// (get) Token: 0x06007A26 RID: 31270 RVA: 0x0019607C File Offset: 0x0019427C
|
||||
// (set) Token: 0x06007A27 RID: 31271 RVA: 0x00196090 File Offset: 0x00194290
|
||||
[Token(Token = "0x170013E1")]
|
||||
public HubConnection Connection
|
||||
{
|
||||
[Token(Token = "0x6007A26")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "6")]
|
||||
get;
|
||||
[Token(Token = "0x6007A27")]
|
||||
[Address(RVA = "0x3C1280", Offset = "0x3BFC80", VA = "0x1803C1280", Slot = "7")]
|
||||
set;
|
||||
}
|
||||
|
||||
// Token: 0x06007A28 RID: 31272 RVA: 0x001960A4 File Offset: 0x001942A4
|
||||
[Token(Token = "0x6007A28")]
|
||||
[Address(RVA = "0x6EF690", Offset = "0x6EE090", VA = "0x1806EF690")]
|
||||
public JsonProtocol(IEncoder encoder)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06007A28)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SignalRCore.JsonProtocol::.ctor(BestHTTP.SignalRCore.IEncoder)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_25:
|
||||
stloc:ArgumentException(var_1_2F, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Encoder must be a json encoder!")))
|
||||
}
|
||||
|
||||
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
|
||||
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
|
||||
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
|
||||
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
|
||||
--- End of inner exception stack trace ---
|
||||
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
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x06007A29 RID: 31273 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x6007A29")]
|
||||
[Address(RVA = "0x6EF3A0", Offset = "0x6EDDA0", VA = "0x1806EF3A0", Slot = "8")]
|
||||
public void ParseMessages(string data, ref List<Message> messages)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06007A2A RID: 31274 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x6007A2A")]
|
||||
[Address(RVA = "0x3C9F60", Offset = "0x3C8960", VA = "0x1803C9F60", Slot = "9")]
|
||||
public void ParseMessages(byte[] data, ref List<Message> messages)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06007A2B RID: 31275 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x6007A2B")]
|
||||
[Address(RVA = "0x6EEE70", Offset = "0x6ED870", VA = "0x1806EEE70", Slot = "10")]
|
||||
public byte[] EncodeMessage(Message message)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06007A2C RID: 31276 RVA: 0x001960E0 File Offset: 0x001942E0
|
||||
[Token(Token = "0x6007A2C")]
|
||||
[Address(RVA = "0x6EF1C0", Offset = "0x6EDBC0", VA = "0x1806EF1C0", Slot = "11")]
|
||||
public object[] GetRealArguments(Type[] argTypes, object[] arguments)
|
||||
{
|
||||
if (arguments != 0)
|
||||
{
|
||||
int length = arguments.Length;
|
||||
if (length != 0)
|
||||
{
|
||||
object[] array = new object[length];
|
||||
int num = 0;
|
||||
int length2 = arguments.Length;
|
||||
if (num < length2)
|
||||
{
|
||||
object obj = arguments[num];
|
||||
Type type = argTypes[num];
|
||||
object obj2 = this.ConvertTo(type, obj);
|
||||
if (obj2 != 0)
|
||||
{
|
||||
}
|
||||
array[0] = obj2;
|
||||
num++;
|
||||
}
|
||||
return array;
|
||||
}
|
||||
}
|
||||
throw new ArrayTypeMismatchException();
|
||||
}
|
||||
|
||||
// Token: 0x06007A2D RID: 31277 RVA: 0x0019614C File Offset: 0x0019434C
|
||||
[Token(Token = "0x6007A2D")]
|
||||
[Address(RVA = "0x6EECC0", Offset = "0x6ED6C0", VA = "0x1806EECC0", Slot = "12")]
|
||||
public object ConvertTo(Type toType, object obj)
|
||||
{
|
||||
if (obj != 0)
|
||||
{
|
||||
if (!toType.IsPrimitive && !toType.IsSealed)
|
||||
{
|
||||
Type typeFromHandle = typeof(string);
|
||||
int num = 0;
|
||||
if (!toType.Equals(typeFromHandle))
|
||||
{
|
||||
IEncoder encoder = this.<Encoder>k__BackingField;
|
||||
int num2 = 0;
|
||||
if (num2 < num)
|
||||
{
|
||||
num2 += num2;
|
||||
num2++;
|
||||
}
|
||||
}
|
||||
int hashCode = obj.GetHashCode();
|
||||
}
|
||||
object obj2 = Convert.ChangeType(obj, toType);
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06007A2E RID: 31278 RVA: 0x001961B4 File Offset: 0x001943B4
|
||||
[Token(Token = "0x6007A2E")]
|
||||
[Address(RVA = "0x6EF5A0", Offset = "0x6EDFA0", VA = "0x1806EF5A0")]
|
||||
public static byte[] WithSeparator(string str)
|
||||
{
|
||||
object obj = Encoding.UTF8.Clone();
|
||||
byte[] array = new byte[str];
|
||||
byte[] bytes = Encoding.UTF8.GetBytes(str);
|
||||
return array;
|
||||
}
|
||||
|
||||
// Token: 0x04005801 RID: 22529
|
||||
[Token(Token = "0x4005801")]
|
||||
public const char Separator = '\u001e';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SignalRCore.Messages
|
||||
{
|
||||
// Token: 0x02001314 RID: 4884
|
||||
[Token(Token = "0x2001314")]
|
||||
[StructLayout(0, Size = 8)]
|
||||
public struct CancelInvocationMessage
|
||||
{
|
||||
// Token: 0x170013EB RID: 5099
|
||||
// (get) Token: 0x06007A64 RID: 31332 RVA: 0x00196E6C File Offset: 0x0019506C
|
||||
[Token(Token = "0x170013EB")]
|
||||
public MessageTypes type
|
||||
{
|
||||
[Token(Token = "0x6007A64")]
|
||||
[Address(RVA = "0x140C0", Offset = "0x134C0", VA = "0x1800140C0")]
|
||||
get
|
||||
{
|
||||
return MessageTypes.CancelInvocation;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04005818 RID: 22552
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x0")]
|
||||
[Token(Token = "0x4005818")]
|
||||
public string invocationId;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SignalRCore.Messages
|
||||
{
|
||||
// Token: 0x02001313 RID: 4883
|
||||
[Token(Token = "0x2001313")]
|
||||
[StructLayout(0)]
|
||||
public struct InvocationMessage
|
||||
{
|
||||
// Token: 0x04005813 RID: 22547
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x0")]
|
||||
[Token(Token = "0x4005813")]
|
||||
public MessageTypes type;
|
||||
|
||||
// Token: 0x04005814 RID: 22548
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x8")]
|
||||
[Token(Token = "0x4005814")]
|
||||
public string invocationId;
|
||||
|
||||
// Token: 0x04005815 RID: 22549
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4005815")]
|
||||
public bool nonblocking;
|
||||
|
||||
// Token: 0x04005816 RID: 22550
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4005816")]
|
||||
public string target;
|
||||
|
||||
// Token: 0x04005817 RID: 22551
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4005817")]
|
||||
public object[] arguments;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SignalRCore.Messages
|
||||
{
|
||||
// Token: 0x02001317 RID: 4887
|
||||
[Token(Token = "0x2001317")]
|
||||
[StructLayout(0)]
|
||||
public struct Message
|
||||
{
|
||||
// Token: 0x06007A66 RID: 31334 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x6007A66")]
|
||||
[Address(RVA = "0x141B0", Offset = "0x135B0", VA = "0x1800141B0", Slot = "3")]
|
||||
public override string ToString()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x04005822 RID: 22562
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x0")]
|
||||
[Token(Token = "0x4005822")]
|
||||
public MessageTypes type;
|
||||
|
||||
// Token: 0x04005823 RID: 22563
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x8")]
|
||||
[Token(Token = "0x4005823")]
|
||||
public string invocationId;
|
||||
|
||||
// Token: 0x04005824 RID: 22564
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4005824")]
|
||||
public bool nonblocking;
|
||||
|
||||
// Token: 0x04005825 RID: 22565
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4005825")]
|
||||
public string target;
|
||||
|
||||
// Token: 0x04005826 RID: 22566
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4005826")]
|
||||
public object[] arguments;
|
||||
|
||||
// Token: 0x04005827 RID: 22567
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4005827")]
|
||||
public object item;
|
||||
|
||||
// Token: 0x04005828 RID: 22568
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4005828")]
|
||||
public object result;
|
||||
|
||||
// Token: 0x04005829 RID: 22569
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4005829")]
|
||||
public string error;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SignalRCore.Messages
|
||||
{
|
||||
// Token: 0x02001316 RID: 4886
|
||||
[Token(Token = "0x2001316")]
|
||||
[StructLayout(3, Size = 4)]
|
||||
public enum MessageTypes
|
||||
{
|
||||
// Token: 0x0400581A RID: 22554
|
||||
[Token(Token = "0x400581A")]
|
||||
Handshake,
|
||||
// Token: 0x0400581B RID: 22555
|
||||
[Token(Token = "0x400581B")]
|
||||
Invocation,
|
||||
// Token: 0x0400581C RID: 22556
|
||||
[Token(Token = "0x400581C")]
|
||||
StreamItem,
|
||||
// Token: 0x0400581D RID: 22557
|
||||
[Token(Token = "0x400581D")]
|
||||
Completion,
|
||||
// Token: 0x0400581E RID: 22558
|
||||
[Token(Token = "0x400581E")]
|
||||
StreamInvocation,
|
||||
// Token: 0x0400581F RID: 22559
|
||||
[Token(Token = "0x400581F")]
|
||||
CancelInvocation,
|
||||
// Token: 0x04005820 RID: 22560
|
||||
[Token(Token = "0x4005820")]
|
||||
Ping,
|
||||
// Token: 0x04005821 RID: 22561
|
||||
[Token(Token = "0x4005821")]
|
||||
Close
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,170 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.JSON;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SignalRCore.Messages
|
||||
{
|
||||
// Token: 0x02001319 RID: 4889
|
||||
[Token(Token = "0x2001319")]
|
||||
[StructLayout(3)]
|
||||
public sealed class NegotiationResult
|
||||
{
|
||||
// Token: 0x170013EF RID: 5103
|
||||
// (get) Token: 0x06007A6C RID: 31340 RVA: 0x00196F00 File Offset: 0x00195100
|
||||
// (set) Token: 0x06007A6D RID: 31341 RVA: 0x00196F14 File Offset: 0x00195114
|
||||
[Token(Token = "0x170013EF")]
|
||||
public string ConnectionId
|
||||
{
|
||||
[Token(Token = "0x6007A6C")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get;
|
||||
[Token(Token = "0x6007A6D")]
|
||||
[Address(RVA = "0x3C39B0", Offset = "0x3C23B0", VA = "0x1803C39B0")]
|
||||
private set;
|
||||
}
|
||||
|
||||
// Token: 0x170013F0 RID: 5104
|
||||
// (get) Token: 0x06007A6E RID: 31342 RVA: 0x00196F28 File Offset: 0x00195128
|
||||
// (set) Token: 0x06007A6F RID: 31343 RVA: 0x00196F3C File Offset: 0x0019513C
|
||||
[Token(Token = "0x170013F0")]
|
||||
public List<SupportedTransport> SupportedTransports
|
||||
{
|
||||
[Token(Token = "0x6007A6E")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get;
|
||||
[Token(Token = "0x6007A6F")]
|
||||
[Address(RVA = "0x3C1280", Offset = "0x3BFC80", VA = "0x1803C1280")]
|
||||
private set;
|
||||
}
|
||||
|
||||
// Token: 0x170013F1 RID: 5105
|
||||
// (get) Token: 0x06007A70 RID: 31344 RVA: 0x00196F50 File Offset: 0x00195150
|
||||
// (set) Token: 0x06007A71 RID: 31345 RVA: 0x00196F64 File Offset: 0x00195164
|
||||
[Token(Token = "0x170013F1")]
|
||||
public Uri Url
|
||||
{
|
||||
[Token(Token = "0x6007A70")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
||||
get;
|
||||
[Token(Token = "0x6007A71")]
|
||||
[Address(RVA = "0x3C1260", Offset = "0x3BFC60", VA = "0x1803C1260")]
|
||||
private set;
|
||||
}
|
||||
|
||||
// Token: 0x170013F2 RID: 5106
|
||||
// (get) Token: 0x06007A72 RID: 31346 RVA: 0x00196F78 File Offset: 0x00195178
|
||||
// (set) Token: 0x06007A73 RID: 31347 RVA: 0x00196F8C File Offset: 0x0019518C
|
||||
[Token(Token = "0x170013F2")]
|
||||
public string AccessToken
|
||||
{
|
||||
[Token(Token = "0x6007A72")]
|
||||
[Address(RVA = "0x3C1230", Offset = "0x3BFC30", VA = "0x1803C1230")]
|
||||
get;
|
||||
[Token(Token = "0x6007A73")]
|
||||
[Address(RVA = "0x3C1270", Offset = "0x3BFC70", VA = "0x1803C1270")]
|
||||
private set;
|
||||
}
|
||||
|
||||
// Token: 0x06007A74 RID: 31348 RVA: 0x00196FA0 File Offset: 0x001951A0
|
||||
[Token(Token = "0x6007A74")]
|
||||
[Address(RVA = "0x6F1190", Offset = "0x6EFB90", VA = "0x1806F1190")]
|
||||
internal static NegotiationResult Parse(string json, out string error, HubConnection hub)
|
||||
{
|
||||
int num = 0;
|
||||
object obj = Json.Decode(json);
|
||||
if (obj != 0 && obj != 0)
|
||||
{
|
||||
NegotiationResult negotiationResult = new NegotiationResult();
|
||||
bool flag;
|
||||
if (flag)
|
||||
{
|
||||
int hashCode = obj.GetHashCode();
|
||||
negotiationResult.<ConnectionId>k__BackingField = hashCode;
|
||||
}
|
||||
bool flag2;
|
||||
List<string> list2;
|
||||
if (flag2 && "availableTransports" != 0 && "availableTransports" != 0)
|
||||
{
|
||||
List<SupportedTransport> list;
|
||||
if (list.GetEnumerator() != 0)
|
||||
{
|
||||
bool flag3;
|
||||
if (flag3)
|
||||
{
|
||||
}
|
||||
bool flag4;
|
||||
if (flag4 && flag4)
|
||||
{
|
||||
if (list2.GetEnumerator() != 0)
|
||||
{
|
||||
int hashCode2 = list2.GetHashCode();
|
||||
}
|
||||
if ((ulong)((uint)(-1)) == (ulong)(-1L))
|
||||
{
|
||||
goto IL_A7;
|
||||
}
|
||||
}
|
||||
SupportedTransport supportedTransport;
|
||||
supportedTransport.<Name>k__BackingField = flag3;
|
||||
supportedTransport.<SupportedFormats>k__BackingField = list2;
|
||||
list.Add(supportedTransport);
|
||||
IL_A7:
|
||||
if (num != 0)
|
||||
{
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
if ((ulong)((uint)(-1)) != (ulong)(-1L))
|
||||
{
|
||||
}
|
||||
if (num != 0)
|
||||
{
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
negotiationResult.<SupportedTransports>k__BackingField = list;
|
||||
}
|
||||
bool flag5;
|
||||
int hashCode3;
|
||||
if (flag5)
|
||||
{
|
||||
hashCode3 = list2.GetHashCode();
|
||||
bool flag6;
|
||||
if (!flag6)
|
||||
{
|
||||
Exception ex = new Exception(string.Format("Couldn't parse url: '{0}'", json));
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
Uri uri;
|
||||
if (!flag6)
|
||||
{
|
||||
UriBuilder uriBuilder;
|
||||
uri = uriBuilder.Uri;
|
||||
}
|
||||
negotiationResult.<Url>k__BackingField = uri;
|
||||
}
|
||||
bool flag7;
|
||||
if (!flag7)
|
||||
{
|
||||
if (!flag7)
|
||||
{
|
||||
goto IL_117;
|
||||
}
|
||||
negotiationResult.<AccessToken>k__BackingField = hashCode3;
|
||||
}
|
||||
int hashCode4 = hashCode3.GetHashCode();
|
||||
negotiationResult.<AccessToken>k__BackingField = hashCode4;
|
||||
}
|
||||
IL_117:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06007A75 RID: 31349 RVA: 0x0019714C File Offset: 0x0019534C
|
||||
[Token(Token = "0x6007A75")]
|
||||
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
||||
public NegotiationResult()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SignalRCore.Messages
|
||||
{
|
||||
// Token: 0x02001315 RID: 4885
|
||||
[Token(Token = "0x2001315")]
|
||||
public struct PingMessage
|
||||
{
|
||||
// Token: 0x170013EC RID: 5100
|
||||
// (get) Token: 0x06007A65 RID: 31333 RVA: 0x00196E7C File Offset: 0x0019507C
|
||||
[Token(Token = "0x170013EC")]
|
||||
public MessageTypes type
|
||||
{
|
||||
[Token(Token = "0x6007A65")]
|
||||
[Address(RVA = "0x142F0", Offset = "0x136F0", VA = "0x1800142F0")]
|
||||
get
|
||||
{
|
||||
return MessageTypes.Ping;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SignalRCore.Messages
|
||||
{
|
||||
// Token: 0x02001318 RID: 4888
|
||||
[Token(Token = "0x2001318")]
|
||||
[StructLayout(3)]
|
||||
public sealed class SupportedTransport
|
||||
{
|
||||
// Token: 0x170013ED RID: 5101
|
||||
// (get) Token: 0x06007A67 RID: 31335 RVA: 0x00196E8C File Offset: 0x0019508C
|
||||
// (set) Token: 0x06007A68 RID: 31336 RVA: 0x00196EA0 File Offset: 0x001950A0
|
||||
[Token(Token = "0x170013ED")]
|
||||
public string Name
|
||||
{
|
||||
[Token(Token = "0x6007A67")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get;
|
||||
[Token(Token = "0x6007A68")]
|
||||
[Address(RVA = "0x3C39B0", Offset = "0x3C23B0", VA = "0x1803C39B0")]
|
||||
private set;
|
||||
}
|
||||
|
||||
// Token: 0x170013EE RID: 5102
|
||||
// (get) Token: 0x06007A69 RID: 31337 RVA: 0x00196EB4 File Offset: 0x001950B4
|
||||
// (set) Token: 0x06007A6A RID: 31338 RVA: 0x00196EC8 File Offset: 0x001950C8
|
||||
[Token(Token = "0x170013EE")]
|
||||
public List<string> SupportedFormats
|
||||
{
|
||||
[Token(Token = "0x6007A69")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get;
|
||||
[Token(Token = "0x6007A6A")]
|
||||
[Address(RVA = "0x3C1280", Offset = "0x3BFC80", VA = "0x1803C1280")]
|
||||
private set;
|
||||
}
|
||||
|
||||
// Token: 0x06007A6B RID: 31339 RVA: 0x00196EDC File Offset: 0x001950DC
|
||||
[Token(Token = "0x6007A6B")]
|
||||
[Address(RVA = "0x3C39C0", Offset = "0x3C23C0", VA = "0x1803C39C0")]
|
||||
internal SupportedTransport(string transportName, List<string> transferFormats)
|
||||
{
|
||||
this.Name = transportName;
|
||||
this.SupportedFormats = transferFormats;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SignalRCore
|
||||
{
|
||||
// Token: 0x0200130A RID: 4874
|
||||
[Token(Token = "0x200130A")]
|
||||
[StructLayout(3, Size = 8)]
|
||||
public sealed class OnAuthenticationFailedDelegate : MulticastDelegate
|
||||
{
|
||||
// Token: 0x06007A0D RID: 31245 RVA: 0x00195F64 File Offset: 0x00194164
|
||||
[Token(Token = "0x6007A0D")]
|
||||
[Address(RVA = "0x3E5170", Offset = "0x3E3B70", VA = "0x1803E5170")]
|
||||
public OnAuthenticationFailedDelegate(object @object, IntPtr method)
|
||||
{
|
||||
this.method = method;
|
||||
this.m_target = @object;
|
||||
}
|
||||
|
||||
// Token: 0x06007A0E RID: 31246 RVA: 0x00195F80 File Offset: 0x00194180
|
||||
[Token(Token = "0x6007A0E")]
|
||||
[Address(RVA = "0x6F1930", Offset = "0x6F0330", VA = "0x1806F1930", Slot = "13")]
|
||||
public void Invoke(IAuthenticationProvider provider, string reason)
|
||||
{
|
||||
if (this.delegates != 0)
|
||||
{
|
||||
}
|
||||
uint num;
|
||||
if (num != (uint)0)
|
||||
{
|
||||
throw new ExecutionEngineException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06007A0F RID: 31247 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x6007A0F")]
|
||||
[Address(RVA = "0x4330B0", Offset = "0x431AB0", VA = "0x1804330B0", Slot = "14")]
|
||||
public IAsyncResult BeginInvoke(IAuthenticationProvider provider, string reason, AsyncCallback callback, object @object)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06007A10 RID: 31248 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x6007A10")]
|
||||
[Address(RVA = "0x40BFF0", Offset = "0x40A9F0", VA = "0x18040BFF0", Slot = "15")]
|
||||
public void EndInvoke(IAsyncResult result)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SignalRCore
|
||||
{
|
||||
// Token: 0x02001309 RID: 4873
|
||||
[Token(Token = "0x2001309")]
|
||||
[StructLayout(3, Size = 8)]
|
||||
public sealed class OnAuthenticationSuccededDelegate : MulticastDelegate
|
||||
{
|
||||
// Token: 0x06007A09 RID: 31241 RVA: 0x00195E8C File Offset: 0x0019408C
|
||||
[Token(Token = "0x6007A09")]
|
||||
[Address(RVA = "0x3E5170", Offset = "0x3E3B70", VA = "0x1803E5170")]
|
||||
public OnAuthenticationSuccededDelegate(object @object, IntPtr method)
|
||||
{
|
||||
this.method = method;
|
||||
this.m_target = @object;
|
||||
}
|
||||
|
||||
// Token: 0x06007A0A RID: 31242 RVA: 0x00195EA8 File Offset: 0x001940A8
|
||||
[Token(Token = "0x6007A0A")]
|
||||
[Address(RVA = "0x6F1D00", Offset = "0x6F0700", VA = "0x1806F1D00", Slot = "13")]
|
||||
public void Invoke(IAuthenticationProvider provider)
|
||||
{
|
||||
if (this.delegates != 0)
|
||||
{
|
||||
}
|
||||
uint num;
|
||||
if (num != (uint)0)
|
||||
{
|
||||
throw new ExecutionEngineException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06007A0B RID: 31243 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x6007A0B")]
|
||||
[Address(RVA = "0x42BD30", Offset = "0x42A730", VA = "0x18042BD30", Slot = "14")]
|
||||
public IAsyncResult BeginInvoke(IAuthenticationProvider provider, AsyncCallback callback, object @object)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06007A0C RID: 31244 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x6007A0C")]
|
||||
[Address(RVA = "0x40BFF0", Offset = "0x40A9F0", VA = "0x18040BFF0", Slot = "15")]
|
||||
public void EndInvoke(IAsyncResult result)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,73 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SignalRCore
|
||||
{
|
||||
// Token: 0x020012FC RID: 4860
|
||||
[Token(Token = "0x20012FC")]
|
||||
[StructLayout(3)]
|
||||
public class StreamItemContainer<T>
|
||||
{
|
||||
// Token: 0x170013CD RID: 5069
|
||||
// (get) Token: 0x060079B1 RID: 31153 RVA: 0x00194AEC File Offset: 0x00192CEC
|
||||
// (set) Token: 0x060079B2 RID: 31154 RVA: 0x00194B00 File Offset: 0x00192D00
|
||||
[Token(Token = "0x170013CD")]
|
||||
public List<T> Items
|
||||
{
|
||||
[Token(Token = "0x60079B1")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get;
|
||||
[Token(Token = "0x60079B2")]
|
||||
[Address(RVA = "0x3C1280", Offset = "0x3BFC80", VA = "0x1803C1280")]
|
||||
private set;
|
||||
}
|
||||
|
||||
// Token: 0x170013CE RID: 5070
|
||||
// (get) Token: 0x060079B3 RID: 31155 RVA: 0x00194B14 File Offset: 0x00192D14
|
||||
// (set) Token: 0x060079B4 RID: 31156 RVA: 0x00194B28 File Offset: 0x00192D28
|
||||
[Token(Token = "0x170013CE")]
|
||||
public T LastAdded
|
||||
{
|
||||
[Token(Token = "0x60079B3")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
||||
get;
|
||||
[Token(Token = "0x60079B4")]
|
||||
[Address(RVA = "0x4E90F0", Offset = "0x4E7AF0", VA = "0x1804E90F0")]
|
||||
private set;
|
||||
}
|
||||
|
||||
// Token: 0x060079B5 RID: 31157 RVA: 0x00194B3C File Offset: 0x00192D3C
|
||||
[Token(Token = "0x60079B5")]
|
||||
[Address(RVA = "0x2421180", Offset = "0x241FB80", VA = "0x182421180")]
|
||||
public StreamItemContainer(long _id)
|
||||
{
|
||||
this.id = _id;
|
||||
List list = new List();
|
||||
}
|
||||
|
||||
// Token: 0x060079B6 RID: 31158 RVA: 0x00194B64 File Offset: 0x00192D64
|
||||
[Token(Token = "0x60079B6")]
|
||||
[Address(RVA = "0x2420F60", Offset = "0x241F960", VA = "0x182420F60")]
|
||||
public void AddItem(T item)
|
||||
{
|
||||
if (this.Items == 0)
|
||||
{
|
||||
List list = new List();
|
||||
this.Items = list;
|
||||
}
|
||||
this.Items.Add(item);
|
||||
}
|
||||
|
||||
// Token: 0x040057DA RID: 22490
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x0")]
|
||||
[Token(Token = "0x40057DA")]
|
||||
public readonly long id;
|
||||
|
||||
// Token: 0x040057DD RID: 22493
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x0")]
|
||||
[Token(Token = "0x40057DD")]
|
||||
public bool IsCanceled;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Threading;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SignalRCore
|
||||
{
|
||||
// Token: 0x020012FE RID: 4862
|
||||
[Token(Token = "0x20012FE")]
|
||||
[StructLayout(3)]
|
||||
internal sealed class Subscription
|
||||
{
|
||||
// Token: 0x060079B8 RID: 31160 RVA: 0x00194BAC File Offset: 0x00192DAC
|
||||
[Token(Token = "0x60079B8")]
|
||||
[Address(RVA = "0x6F4720", Offset = "0x6F3120", VA = "0x1806F4720")]
|
||||
public void Add(Type[] paramTypes, Action<object[]> callback)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
List<CallbackDescriptor> list = this.callbacks;
|
||||
List<CallbackDescriptor> list2 = this.callbacks;
|
||||
Monitor.Exit(list);
|
||||
if (num != -1)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
}
|
||||
|
||||
// Token: 0x060079B9 RID: 31161 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x60079B9")]
|
||||
[Address(RVA = "0x6F4840", Offset = "0x6F3240", VA = "0x1806F4840")]
|
||||
public void Remove(Action<object[]> callback)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x060079BA RID: 31162 RVA: 0x00194BE0 File Offset: 0x00192DE0
|
||||
[Token(Token = "0x60079BA")]
|
||||
[Address(RVA = "0x6F49D0", Offset = "0x6F33D0", VA = "0x1806F49D0")]
|
||||
public Subscription()
|
||||
{
|
||||
List<CallbackDescriptor> list = new List(1);
|
||||
this.callbacks = list;
|
||||
base..ctor();
|
||||
}
|
||||
|
||||
// Token: 0x040057E0 RID: 22496
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40057E0")]
|
||||
public List<CallbackDescriptor> callbacks;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SignalRCore
|
||||
{
|
||||
// Token: 0x020012F7 RID: 4855
|
||||
[Token(Token = "0x20012F7")]
|
||||
[StructLayout(3, Size = 4)]
|
||||
public enum TransferModes
|
||||
{
|
||||
// Token: 0x040057C9 RID: 22473
|
||||
[Token(Token = "0x40057C9")]
|
||||
Binary,
|
||||
// Token: 0x040057CA RID: 22474
|
||||
[Token(Token = "0x40057CA")]
|
||||
Text
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SignalRCore
|
||||
{
|
||||
// Token: 0x020012F8 RID: 4856
|
||||
[Token(Token = "0x20012F8")]
|
||||
[StructLayout(3, Size = 4)]
|
||||
public enum TransportStates
|
||||
{
|
||||
// Token: 0x040057CC RID: 22476
|
||||
[Token(Token = "0x40057CC")]
|
||||
Initial,
|
||||
// Token: 0x040057CD RID: 22477
|
||||
[Token(Token = "0x40057CD")]
|
||||
Connecting,
|
||||
// Token: 0x040057CE RID: 22478
|
||||
[Token(Token = "0x40057CE")]
|
||||
Connected,
|
||||
// Token: 0x040057CF RID: 22479
|
||||
[Token(Token = "0x40057CF")]
|
||||
Closing,
|
||||
// Token: 0x040057D0 RID: 22480
|
||||
[Token(Token = "0x40057D0")]
|
||||
Failed,
|
||||
// Token: 0x040057D1 RID: 22481
|
||||
[Token(Token = "0x40057D1")]
|
||||
Closed
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SignalRCore
|
||||
{
|
||||
// Token: 0x020012F6 RID: 4854
|
||||
[Token(Token = "0x20012F6")]
|
||||
[StructLayout(3, Size = 4)]
|
||||
public enum TransportTypes
|
||||
{
|
||||
// Token: 0x040057C7 RID: 22471
|
||||
[Token(Token = "0x40057C7")]
|
||||
WebSocket
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,564 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
using BestHTTP.Decompression.Zlib;
|
||||
using BestHTTP.JSON;
|
||||
using BestHTTP.Logger;
|
||||
using BestHTTP.SignalRCore.Messages;
|
||||
using BestHTTP.WebSocket;
|
||||
using BestHTTP.WebSocket.Extensions;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SignalRCore.Transports
|
||||
{
|
||||
// Token: 0x02001312 RID: 4882
|
||||
[Token(Token = "0x2001312")]
|
||||
[StructLayout(3)]
|
||||
internal sealed class WebSocketTransport : ITransport
|
||||
{
|
||||
// Token: 0x170013E7 RID: 5095
|
||||
// (get) Token: 0x06007A50 RID: 31312 RVA: 0x00196520 File Offset: 0x00194720
|
||||
[Token(Token = "0x170013E7")]
|
||||
public TransportTypes TransportType
|
||||
{
|
||||
[Token(Token = "0x6007A50")]
|
||||
[Address(RVA = "0x3F8880", Offset = "0x3F7280", VA = "0x1803F8880", Slot = "5")]
|
||||
get
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170013E8 RID: 5096
|
||||
// (get) Token: 0x06007A51 RID: 31313 RVA: 0x00196530 File Offset: 0x00194730
|
||||
[Token(Token = "0x170013E8")]
|
||||
public TransferModes TransferMode
|
||||
{
|
||||
[Token(Token = "0x6007A51")]
|
||||
[Address(RVA = "0x3F8880", Offset = "0x3F7280", VA = "0x1803F8880", Slot = "4")]
|
||||
get
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170013E9 RID: 5097
|
||||
// (get) Token: 0x06007A52 RID: 31314 RVA: 0x00196540 File Offset: 0x00194740
|
||||
// (set) Token: 0x06007A53 RID: 31315 RVA: 0x00196554 File Offset: 0x00194754
|
||||
[Token(Token = "0x170013E9")]
|
||||
public TransportStates State
|
||||
{
|
||||
[Token(Token = "0x6007A52")]
|
||||
[Address(RVA = "0x3C1C50", Offset = "0x3C0650", VA = "0x1803C1C50", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this._state;
|
||||
}
|
||||
[Token(Token = "0x6007A53")]
|
||||
[Address(RVA = "0x6FE160", Offset = "0x6FCB60", VA = "0x1806FE160")]
|
||||
private set
|
||||
{
|
||||
if (this._state != value)
|
||||
{
|
||||
Action<TransportStates, TransportStates> onStateChanged = this.OnStateChanged;
|
||||
this._state = value;
|
||||
if (onStateChanged != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170013EA RID: 5098
|
||||
// (get) Token: 0x06007A54 RID: 31316 RVA: 0x00196580 File Offset: 0x00194780
|
||||
// (set) Token: 0x06007A55 RID: 31317 RVA: 0x00196594 File Offset: 0x00194794
|
||||
[Token(Token = "0x170013EA")]
|
||||
public string ErrorReason
|
||||
{
|
||||
[Token(Token = "0x6007A54")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "7")]
|
||||
get;
|
||||
[Token(Token = "0x6007A55")]
|
||||
[Address(RVA = "0x3C1280", Offset = "0x3BFC80", VA = "0x1803C1280")]
|
||||
private set;
|
||||
}
|
||||
|
||||
// Token: 0x140000B5 RID: 181
|
||||
// (add) Token: 0x06007A56 RID: 31318 RVA: 0x001965A8 File Offset: 0x001947A8
|
||||
// (remove) Token: 0x06007A57 RID: 31319 RVA: 0x001965D0 File Offset: 0x001947D0
|
||||
[Token(Token = "0x140000B5")]
|
||||
public event Action<TransportStates, TransportStates> OnStateChanged
|
||||
{
|
||||
[Token(Token = "0x6007A56")]
|
||||
[Address(RVA = "0x6FE020", Offset = "0x6FCA20", VA = "0x1806FE020", Slot = "8")]
|
||||
[CompilerGenerated]
|
||||
add
|
||||
{
|
||||
Action<TransportStates, TransportStates> onStateChanged;
|
||||
Delegate @delegate;
|
||||
do
|
||||
{
|
||||
onStateChanged = this.OnStateChanged;
|
||||
@delegate = Delegate.Combine(onStateChanged, value);
|
||||
}
|
||||
while (@delegate != 0 && @delegate == 0);
|
||||
while (@delegate != onStateChanged)
|
||||
{
|
||||
}
|
||||
}
|
||||
[Token(Token = "0x6007A57")]
|
||||
[Address(RVA = "0x6FE0C0", Offset = "0x6FCAC0", VA = "0x1806FE0C0", Slot = "9")]
|
||||
[CompilerGenerated]
|
||||
remove
|
||||
{
|
||||
Action<TransportStates, TransportStates> onStateChanged;
|
||||
Delegate @delegate;
|
||||
do
|
||||
{
|
||||
onStateChanged = this.OnStateChanged;
|
||||
@delegate = Delegate.Remove(onStateChanged, value);
|
||||
}
|
||||
while (@delegate != 0 && @delegate == 0);
|
||||
while (@delegate != onStateChanged)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06007A58 RID: 31320 RVA: 0x001965F8 File Offset: 0x001947F8
|
||||
[Token(Token = "0x6007A58")]
|
||||
[Address(RVA = "0x6FDF60", Offset = "0x6FC960", VA = "0x1806FDF60")]
|
||||
public WebSocketTransport(HubConnection con)
|
||||
{
|
||||
List<Message> list = new List();
|
||||
this.messages = list;
|
||||
base..ctor();
|
||||
this.connection = con;
|
||||
TransportStates state = this._state;
|
||||
if (state != TransportStates.Initial)
|
||||
{
|
||||
Action<TransportStates, TransportStates> onStateChanged = this.OnStateChanged;
|
||||
this._state = (TransportStates)((ulong)0L);
|
||||
if (onStateChanged != 0)
|
||||
{
|
||||
int num = 0;
|
||||
onStateChanged(state, num);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06007A59 RID: 31321 RVA: 0x00196648 File Offset: 0x00194848
|
||||
[Token(Token = "0x6007A59")]
|
||||
[Address(RVA = "0x6FCA50", Offset = "0x6FB450", VA = "0x1806FCA50", Slot = "10")]
|
||||
void ITransport.StartConnect()
|
||||
{
|
||||
WebSocket webSocket7;
|
||||
Delegate delegate5;
|
||||
for (;;)
|
||||
{
|
||||
ILogger logger = HTTPManager.Logger;
|
||||
WebSocket webSocket = this.webSocket;
|
||||
int num = 0;
|
||||
if (webSocket == 0)
|
||||
{
|
||||
Uri <Uri>k__BackingField = this.connection.<Uri>k__BackingField;
|
||||
HubConnection hubConnection = this.connection;
|
||||
if (hubConnection.<NegotiationResult>k__BackingField != num)
|
||||
{
|
||||
UriBuilder uriBuilder = new UriBuilder(<Uri>k__BackingField);
|
||||
StringBuilder stringBuilder = new StringBuilder();
|
||||
string query = <Uri>k__BackingField.Query;
|
||||
StringBuilder stringBuilder2 = stringBuilder.Append(query);
|
||||
string <ConnectionId>k__BackingField = this.connection.<NegotiationResult>k__BackingField.<ConnectionId>k__BackingField;
|
||||
if (stringBuilder2 == 0)
|
||||
{
|
||||
StringBuilder stringBuilder3 = stringBuilder.Append("&id=");
|
||||
string <ConnectionId>k__BackingField2 = this.connection.<NegotiationResult>k__BackingField.<ConnectionId>k__BackingField;
|
||||
StringBuilder stringBuilder4 = stringBuilder3.Append(<ConnectionId>k__BackingField2);
|
||||
}
|
||||
int hashCode = stringBuilder.GetHashCode();
|
||||
Uri uri = uriBuilder.Uri;
|
||||
}
|
||||
if (hubConnection.<AuthenticationProvider>k__BackingField != 0 && num < logger)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
ILogger logger2 = HTTPManager.Logger;
|
||||
int hashCode2 = num.GetHashCode();
|
||||
string empty = string.Empty;
|
||||
IExtension[] array = new IExtension[1];
|
||||
int num2 = 0;
|
||||
PerMessageCompression perMessageCompression;
|
||||
perMessageCompression.FieldGetter(num2, empty, empty);
|
||||
perMessageCompression.<Level>k__BackingField = (CompressionLevel)((ulong)6L);
|
||||
perMessageCompression.<ClientNoContextTakeover>k__BackingField = num != 0;
|
||||
perMessageCompression.<ClientMaxWindowBits>k__BackingField = (int)((ulong)15L);
|
||||
perMessageCompression.<ServerMaxWindowBits>k__BackingField = (int)((ulong)15L);
|
||||
perMessageCompression.<MinimumDataLegthToCompress>k__BackingField = (int)((ulong)256L);
|
||||
array[0] = perMessageCompression;
|
||||
WebSocket webSocket2;
|
||||
webSocket2.<Extensions>k__BackingField = array;
|
||||
this.webSocket = webSocket2;
|
||||
}
|
||||
WebSocket webSocket3;
|
||||
if (this.connection.<AuthenticationProvider>k__BackingField != 0)
|
||||
{
|
||||
webSocket3 = this.webSocket;
|
||||
}
|
||||
OnWebSocketOpenDelegate onOpen = webSocket3.OnOpen;
|
||||
OnWebSocketOpenDelegate onWebSocketOpenDelegate;
|
||||
onWebSocketOpenDelegate.method_ptr = ldftn(OnOpen);
|
||||
onWebSocketOpenDelegate.method = ldftn(OnOpen);
|
||||
onWebSocketOpenDelegate.m_target = this;
|
||||
Delegate @delegate = Delegate.Combine(onOpen, onWebSocketOpenDelegate);
|
||||
if (@delegate == 0 || @delegate != 0)
|
||||
{
|
||||
webSocket3.OnOpen = @delegate;
|
||||
WebSocket webSocket4 = this.webSocket;
|
||||
OnWebSocketMessageDelegate onMessage = webSocket4.OnMessage;
|
||||
OnWebSocketMessageDelegate onWebSocketMessageDelegate;
|
||||
onWebSocketMessageDelegate.method_ptr = ldftn(OnMessage);
|
||||
onWebSocketMessageDelegate.method = ldftn(OnMessage);
|
||||
onWebSocketMessageDelegate.m_target = this;
|
||||
Delegate delegate2 = Delegate.Combine(onMessage, onWebSocketMessageDelegate);
|
||||
if (delegate2 == 0 || delegate2 != 0)
|
||||
{
|
||||
webSocket4.OnMessage = delegate2;
|
||||
WebSocket webSocket5 = this.webSocket;
|
||||
OnWebSocketBinaryDelegate onBinary = webSocket5.OnBinary;
|
||||
OnWebSocketBinaryDelegate onWebSocketBinaryDelegate;
|
||||
onWebSocketBinaryDelegate.method_ptr = ldftn(OnBinary);
|
||||
onWebSocketBinaryDelegate.method = ldftn(OnBinary);
|
||||
onWebSocketBinaryDelegate.m_target = this;
|
||||
Delegate delegate3 = Delegate.Combine(onBinary, onWebSocketBinaryDelegate);
|
||||
if (delegate3 == 0 || delegate3 != 0)
|
||||
{
|
||||
webSocket5.OnBinary = delegate3;
|
||||
WebSocket webSocket6 = this.webSocket;
|
||||
OnWebSocketErrorDescriptionDelegate onErrorDesc = webSocket6.OnErrorDesc;
|
||||
OnWebSocketErrorDescriptionDelegate onWebSocketErrorDescriptionDelegate;
|
||||
onWebSocketErrorDescriptionDelegate.method_ptr = ldftn(OnError);
|
||||
onWebSocketErrorDescriptionDelegate.method = ldftn(OnError);
|
||||
onWebSocketErrorDescriptionDelegate.m_target = this;
|
||||
Delegate delegate4 = Delegate.Combine(onErrorDesc, onWebSocketErrorDescriptionDelegate);
|
||||
if (delegate4 == 0 || delegate4 != 0)
|
||||
{
|
||||
webSocket6.OnErrorDesc = delegate4;
|
||||
webSocket7 = this.webSocket;
|
||||
OnWebSocketClosedDelegate onClosed = webSocket7.OnClosed;
|
||||
OnWebSocketClosedDelegate onWebSocketClosedDelegate;
|
||||
onWebSocketClosedDelegate.method_ptr = ldftn(OnClosed);
|
||||
onWebSocketClosedDelegate.method = ldftn(OnClosed);
|
||||
onWebSocketClosedDelegate.m_target = this;
|
||||
delegate5 = Delegate.Combine(onClosed, onWebSocketClosedDelegate);
|
||||
if (delegate5 == 0 || delegate5 != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
webSocket7.OnClosed = delegate5;
|
||||
this.webSocket.Open();
|
||||
if (this._state != TransportStates.Connecting)
|
||||
{
|
||||
Action<TransportStates, TransportStates> onStateChanged = this.OnStateChanged;
|
||||
this._state = (TransportStates)((ulong)1L);
|
||||
if (onStateChanged != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06007A5A RID: 31322 RVA: 0x00196988 File Offset: 0x00194B88
|
||||
[Token(Token = "0x6007A5A")]
|
||||
[Address(RVA = "0x6FC810", Offset = "0x6FB210", VA = "0x1806FC810", Slot = "12")]
|
||||
void ITransport.Send(byte[] msg)
|
||||
{
|
||||
WebSocket webSocket = this.webSocket;
|
||||
WebSocketResponse webSocketResponse = webSocket.webSocket;
|
||||
if (webSocketResponse != 0 && !webSocketResponse.closed)
|
||||
{
|
||||
webSocket.webSocket.Send(msg);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06007A5B RID: 31323 RVA: 0x001969C4 File Offset: 0x00194BC4
|
||||
[Token(Token = "0x6007A5B")]
|
||||
[Address(RVA = "0x6FDCF0", Offset = "0x6FC6F0", VA = "0x1806FDCF0")]
|
||||
private void OnOpen(WebSocket webSocket)
|
||||
{
|
||||
ILogger logger = HTTPManager.Logger;
|
||||
IProtocol <Protocol>k__BackingField = this.connection.<Protocol>k__BackingField;
|
||||
int num = 0;
|
||||
if (num < logger)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
byte[] array = JsonProtocol.WithSeparator(string.Format("{{\"protocol\":\"{0}\", \"version\": 1}}", num));
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06007A5C RID: 31324 RVA: 0x00196A14 File Offset: 0x00194C14
|
||||
[Token(Token = "0x6007A5C")]
|
||||
[Address(RVA = "0x6FDE60", Offset = "0x6FC860", VA = "0x1806FDE60")]
|
||||
private string ParseHandshakeResponse(string data)
|
||||
{
|
||||
int num = 0;
|
||||
object obj = Json.Decode(data);
|
||||
if (obj != 0 && obj != 0)
|
||||
{
|
||||
bool flag;
|
||||
if (!flag)
|
||||
{
|
||||
}
|
||||
int hashCode = num.GetHashCode();
|
||||
}
|
||||
return "Couldn't parse json data: " + data;
|
||||
}
|
||||
|
||||
// Token: 0x06007A5D RID: 31325 RVA: 0x00196A58 File Offset: 0x00194C58
|
||||
[Token(Token = "0x6007A5D")]
|
||||
[Address(RVA = "0x6FD320", Offset = "0x6FBD20", VA = "0x1806FD320")]
|
||||
private void HandleHandshakeResponse(string data)
|
||||
{
|
||||
int num = 0;
|
||||
object obj = Json.Decode(data);
|
||||
if (obj != 0 && obj != 0)
|
||||
{
|
||||
bool flag;
|
||||
if (!flag)
|
||||
{
|
||||
goto IL_2F;
|
||||
}
|
||||
int hashCode = num.GetHashCode();
|
||||
}
|
||||
string text = "Couldn't parse json data: " + data;
|
||||
IL_2F:
|
||||
this.<ErrorReason>k__BackingField = text;
|
||||
bool flag2 = string.IsNullOrEmpty(text);
|
||||
TransportStates state = this._state;
|
||||
if (state != TransportStates.Connected)
|
||||
{
|
||||
Action<TransportStates, TransportStates> onStateChanged = this.OnStateChanged;
|
||||
this._state = TransportStates.Connected;
|
||||
if (onStateChanged != 0)
|
||||
{
|
||||
onStateChanged(state, 2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06007A5E RID: 31326 RVA: 0x00196AD8 File Offset: 0x00194CD8
|
||||
[Token(Token = "0x6007A5E")]
|
||||
[Address(RVA = "0x6FDA90", Offset = "0x6FC490", VA = "0x1806FDA90")]
|
||||
private void OnMessage(WebSocket webSocket, string data)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
if (this._state == TransportStates.Connecting)
|
||||
{
|
||||
break;
|
||||
}
|
||||
this.messages.Clear();
|
||||
IProtocol <Protocol>k__BackingField = this.connection.<Protocol>k__BackingField;
|
||||
if (num < data)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
HubConnection hubConnection = this.connection;
|
||||
List<Message> list = this.messages;
|
||||
hubConnection.OnMessages(list);
|
||||
list += list;
|
||||
ILogger logger = HTTPManager.Logger;
|
||||
num++;
|
||||
this.messages.Clear();
|
||||
if (num != -1)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
this.HandleHandshakeResponse(data);
|
||||
}
|
||||
|
||||
// Token: 0x06007A5F RID: 31327 RVA: 0x00196B6C File Offset: 0x00194D6C
|
||||
[Token(Token = "0x6007A5F")]
|
||||
[Address(RVA = "0x6FD470", Offset = "0x6FBE70", VA = "0x1806FD470")]
|
||||
private void OnBinary(WebSocket webSocket, byte[] data)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
if (this._state == TransportStates.Connecting)
|
||||
{
|
||||
break;
|
||||
}
|
||||
this.messages.Clear();
|
||||
IProtocol <Protocol>k__BackingField = this.connection.<Protocol>k__BackingField;
|
||||
if (num < data)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
HubConnection hubConnection = this.connection;
|
||||
List<Message> list = this.messages;
|
||||
hubConnection.OnMessages(list);
|
||||
list += list;
|
||||
ILogger logger = HTTPManager.Logger;
|
||||
num++;
|
||||
this.messages.Clear();
|
||||
if (num != -1)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
string @string = Encoding.UTF8.GetString(data);
|
||||
this.HandleHandshakeResponse(@string);
|
||||
}
|
||||
|
||||
// Token: 0x06007A60 RID: 31328 RVA: 0x00196C18 File Offset: 0x00194E18
|
||||
[Token(Token = "0x6007A60")]
|
||||
[Address(RVA = "0x6FD9A0", Offset = "0x6FC3A0", VA = "0x1806FD9A0")]
|
||||
private void OnError(WebSocket webSocket, string reason)
|
||||
{
|
||||
ILogger logger = HTTPManager.Logger;
|
||||
string text = "OnError: " + reason;
|
||||
this.<ErrorReason>k__BackingField = reason;
|
||||
TransportStates state = this._state;
|
||||
if (state != TransportStates.Failed)
|
||||
{
|
||||
Action<TransportStates, TransportStates> onStateChanged = this.OnStateChanged;
|
||||
this._state = (TransportStates)((ulong)4L);
|
||||
if (onStateChanged != 0)
|
||||
{
|
||||
onStateChanged(state, (uint)4);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06007A61 RID: 31329 RVA: 0x00196C74 File Offset: 0x00194E74
|
||||
[Token(Token = "0x6007A61")]
|
||||
[Address(RVA = "0x6FD710", Offset = "0x6FC110", VA = "0x1806FD710")]
|
||||
private void OnClosed(WebSocket webSocket, ushort code, string message)
|
||||
{
|
||||
ILogger logger = HTTPManager.Logger;
|
||||
object[] array = new object[4];
|
||||
if ("OnClosed: " != 0)
|
||||
{
|
||||
}
|
||||
array[0] = "OnClosed: ";
|
||||
if (array != 0)
|
||||
{
|
||||
}
|
||||
array[1] = array;
|
||||
if (" " != 0)
|
||||
{
|
||||
}
|
||||
array[2] = " ";
|
||||
if (message != 0)
|
||||
{
|
||||
}
|
||||
array[3] = message;
|
||||
string text = string.Concat(array);
|
||||
this.webSocket = (ulong)0L;
|
||||
TransportStates state = this._state;
|
||||
if (state != TransportStates.Closed)
|
||||
{
|
||||
Action<TransportStates, TransportStates> onStateChanged = this.OnStateChanged;
|
||||
this._state = (TransportStates)((ulong)5L);
|
||||
if (onStateChanged != 0)
|
||||
{
|
||||
onStateChanged(state, (uint)5);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06007A62 RID: 31330 RVA: 0x00196D14 File Offset: 0x00194F14
|
||||
[Token(Token = "0x6007A62")]
|
||||
[Address(RVA = "0x6FC870", Offset = "0x6FB270", VA = "0x1806FC870", Slot = "11")]
|
||||
void ITransport.StartClose()
|
||||
{
|
||||
ILogger logger = HTTPManager.Logger;
|
||||
if (this.webSocket == (ulong)0L)
|
||||
{
|
||||
TransportStates state = this._state;
|
||||
if (state != TransportStates.Closed)
|
||||
{
|
||||
Action<TransportStates, TransportStates> onStateChanged = this.OnStateChanged;
|
||||
this._state = (TransportStates)((ulong)5L);
|
||||
if (onStateChanged != 0)
|
||||
{
|
||||
onStateChanged(state, (uint)5);
|
||||
return;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
TransportStates state2 = this._state;
|
||||
if (state2 != TransportStates.Closing)
|
||||
{
|
||||
Action<TransportStates, TransportStates> onStateChanged2 = this.OnStateChanged;
|
||||
this._state = (TransportStates)((ulong)3L);
|
||||
if (onStateChanged2 != 0)
|
||||
{
|
||||
onStateChanged2(state2, (uint)3);
|
||||
}
|
||||
}
|
||||
WebSocket webSocket = this.webSocket;
|
||||
WebSocketStates <State>k__BackingField = webSocket.<State>k__BackingField;
|
||||
webSocket.<State>k__BackingField = (WebSocketStates)((ulong)2L);
|
||||
WebSocketResponse webSocketResponse = webSocket.webSocket;
|
||||
}
|
||||
|
||||
// Token: 0x06007A63 RID: 31331 RVA: 0x00196DDC File Offset: 0x00194FDC
|
||||
[Token(Token = "0x6007A63")]
|
||||
[Address(RVA = "0x6FD1C0", Offset = "0x6FBBC0", VA = "0x1806FD1C0")]
|
||||
private Uri BuildUri(Uri baseUri)
|
||||
{
|
||||
if (this.connection.<NegotiationResult>k__BackingField != (ulong)0L)
|
||||
{
|
||||
UriBuilder uriBuilder = new UriBuilder(baseUri);
|
||||
StringBuilder stringBuilder = new StringBuilder();
|
||||
string query = baseUri.Query;
|
||||
StringBuilder stringBuilder2 = stringBuilder.Append(query);
|
||||
if (!string.IsNullOrEmpty(this.connection.<NegotiationResult>k__BackingField.<ConnectionId>k__BackingField))
|
||||
{
|
||||
StringBuilder stringBuilder3 = stringBuilder.Append("&id=");
|
||||
string <ConnectionId>k__BackingField = this.connection.<NegotiationResult>k__BackingField.<ConnectionId>k__BackingField;
|
||||
StringBuilder stringBuilder4 = stringBuilder3.Append(<ConnectionId>k__BackingField);
|
||||
}
|
||||
int hashCode = stringBuilder.GetHashCode();
|
||||
return uriBuilder.Uri;
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0400580D RID: 22541
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400580D")]
|
||||
private TransportStates _state;
|
||||
|
||||
// Token: 0x04005810 RID: 22544
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4005810")]
|
||||
private WebSocket webSocket;
|
||||
|
||||
// Token: 0x04005811 RID: 22545
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4005811")]
|
||||
private HubConnection connection;
|
||||
|
||||
// Token: 0x04005812 RID: 22546
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4005812")]
|
||||
private List<Message> messages;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user