terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
RemotingProxy.cs
Go to the documentation of this file.
1using System;
6
8{
9 // Token: 0x0200035C RID: 860
11 {
12 // Token: 0x06001CAB RID: 7339 RVA: 0x0003E6A4 File Offset: 0x0003C8A4
13 internal RemotingProxy(Type type, ClientIdentity identity)
14 : base(type, identity)
15 {
18 string targetUri = identity.TargetUri;
20 }
21
22 // Token: 0x06001CAC RID: 7340 RVA: 0x0003E6D8 File Offset: 0x0003C8D8
29
30 // Token: 0x06001CAD RID: 7341 RVA: 0x0003E6FC File Offset: 0x0003C8FC
31 public override IMessage Invoke(IMessage request)
32 {
33 if (request != null)
34 {
35 return request;
36 }
37 Type type;
38 if (type != null)
39 {
40 if (type == null)
41 {
42 string targetUri = this._targetUri;
43 }
45 }
47 bool hasExitSinks = Thread.CurrentContext.HasExitSinks;
49 if (this._hasEnvoySink)
50 {
51 sink = this._sink;
52 if (type != null)
53 {
54 }
56 }
57 IMessageSink clientContextSinkChain = Thread.CurrentContext.GetClientContextSinkChain();
59 while (callType == CallType.Sync)
60 {
61 }
62 if (sink != null)
63 {
64 goto IL_0074;
65 }
66 goto IL_0074;
67 IL_0074:;
68 }
69
70 // Token: 0x06001CAE RID: 7342 RVA: 0x0003E780 File Offset: 0x0003C980
71 internal void AttachIdentity(Identity identity)
72 {
73 this._objectIdentity = identity;
74 if (identity == null || this != null)
75 {
76 }
77 string objectUri = identity._objectUri;
80 int num;
81 if (envoySink != null)
82 {
83 num = 1;
85 this._hasEnvoySink = num != 0;
86 return;
87 }
88 this._sink = num;
89 }
90
91 // Token: 0x06001CAF RID: 7343 RVA: 0x0003E7E0 File Offset: 0x0003C9E0
93 {
95 for (;;)
96 {
97 ctorCall = this._ctorCall;
98 if (ctorCall != null)
99 {
100 break;
101 }
102 if (request != null && request == null)
103 {
104 goto Block_2;
105 }
106 }
107 ctorCall.CopyFrom(request);
109 IMessage message;
110 return message;
111 Block_2:
112 throw new InvalidCastException();
113 }
114
115 // Token: 0x17000351 RID: 849
116 // (get) Token: 0x06001CB0 RID: 7344 RVA: 0x0003E814 File Offset: 0x0003CA14
117 public string TypeName
118 {
119 get
120 {
121 /*
122An exception occurred when decompiling this method (06001CB0)
123
124ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String System.Runtime.Remoting.Proxies.RemotingProxy::get_TypeName()
125
126 ---> System.Exception: Basic block has to end with unconditional control flow.
127{
128 IL_0008:
129 brtrue(IL_0000, logicnot:bool(call:Type[exp:bool](RealProxy::GetProxiedType, ldloc:RemotingProxy[exp:RealProxy](this))))
130}
131
132 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
133 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
134 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
135 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
136 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
137 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
138 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
139 --- End of inner exception stack trace ---
140 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
141 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
142*/;
143 }
144 }
145
146 // Token: 0x06001CB1 RID: 7345 RVA: 0x0003E830 File Offset: 0x0003CA30
147 public bool CanCastTo(Type fromType, object o)
148 {
149 /*
150An exception occurred when decompiling this method (06001CB1)
151
152ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Runtime.Remoting.Proxies.RemotingProxy::CanCastTo(System.Type,System.Object)
153
154 ---> System.Exception: Basic block has to end with unconditional control flow.
155{
156 IL_0027:
157 brtrue(IL_0027, logicnot:bool(ldloc:Type[exp:bool](fromType)))
158}
159
160 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
161 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
162 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
163 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
164 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
165 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
166 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
167 --- End of inner exception stack trace ---
168 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
169 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
170*/;
171 }
172
173 // Token: 0x06001CB2 RID: 7346 RVA: 0x0003E868 File Offset: 0x0003CA68
174 protected override void Finalize()
175 {
176 if (this._objectIdentity != null)
177 {
178 }
179 base.Finalize();
180 }
181
182 // Token: 0x06001CB3 RID: 7347 RVA: 0x0003E8A4 File Offset: 0x0003CAA4
183 // Note: this type is marked as 'beforefieldinit'.
185 {
186 if (!true)
187 {
188 }
189 Type type;
190 MethodInfo method = type.GetMethod("GetType");
191 Type type2;
192 MethodInfo method2 = type2.GetMethod("GetHashCode");
193 }
194
195 // Token: 0x04000E86 RID: 3718
197
198 // Token: 0x04000E87 RID: 3719
200
201 // Token: 0x04000E88 RID: 3720
203
204 // Token: 0x04000E89 RID: 3721
205 private bool _hasEnvoySink;
206
207 // Token: 0x04000E8A RID: 3722
209 }
210}
class f__AnonymousType0<< Count > j__TPar
static ConstructionCall CreateConstructionCall(Type type, string activationUrl, object[] activationAttributes)
override IMessage Invoke(IMessage request)
RemotingProxy(Type type, ClientIdentity identity)
IMessage ActivateRemoteObject(IMethodMessage request)
RemotingProxy(Type type, string activationUrl, object[] activationAttributes)
bool CanCastTo(Type fromType, object o)
static Context CurrentContext
Definition Thread.cs:360
MethodInfo GetMethod(string name)
Definition Type.cs:945