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
ChannelServices.cs
Go to the documentation of this file.
1using System;
6
8{
9 // Token: 0x02000375 RID: 885
10 [ComVisible(true)]
11 public sealed class ChannelServices
12 {
13 // Token: 0x17000368 RID: 872
14 // (get) Token: 0x06001D1D RID: 7453 RVA: 0x0003F8CC File Offset: 0x0003DACC
16 {
17 get
18 {
19 /*
20An exception occurred when decompiling this method (06001D1D)
21
22ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Runtime.Remoting.Contexts.CrossContextChannel System.Runtime.Remoting.Channels.ChannelServices::get_CrossContextChannel()
23
24 ---> System.Exception: Basic block has to end with unconditional control flow.
25{
26 IL_0000:
27 brtrue(IL_0000, ldc.i4:bool(1))
28}
29
30 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
31 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
32 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
33 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
34 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
35 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
36 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
37 --- End of inner exception stack trace ---
38 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
39 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
40*/;
41 }
42 }
43
44 // Token: 0x06001D1E RID: 7454 RVA: 0x0003F8DC File Offset: 0x0003DADC
45 internal static IMessageSink CreateClientChannelSinkChain(string url, object remoteChannelData, [Out] string objectUri)
46 {
47 while (url == null || url != null)
48 {
49 if (false)
50 {
52 while (messageSink == null)
53 {
54 }
55 return messageSink;
56 }
57 }
58 throw new InvalidCastException();
59 }
60
61 // Token: 0x06001D1F RID: 7455 RVA: 0x0003F984 File Offset: 0x0003DB84
63 {
64 /*
65An exception occurred when decompiling this method (06001D1F)
66
67ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Runtime.Remoting.Messaging.IMessageSink System.Runtime.Remoting.Channels.ChannelServices::CreateClientChannelSinkChain(System.Runtime.Remoting.Channels.IChannelSender,System.String,System.Object[],System.String)
68
69 ---> System.Exception: Basic block has to end with unconditional control flow.
70{
71 Block_0:
72 stloc:int64(var_1_0B, ldfld:int64(int64::m_value, ldc.i4:int32[exp:int64&](0)))
73}
74
75 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
76 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
77 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
78 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
79 --- End of inner exception stack trace ---
80 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
81 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
82*/;
83 }
84
85 // Token: 0x06001D20 RID: 7456 RVA: 0x0003F99C File Offset: 0x0003DB9C
86 [Obsolete("Use RegisterChannel(IChannel,Boolean)")]
87 public static void RegisterChannel(IChannel chnl)
88 {
89 if (!true)
90 {
91 }
92 long num = 0L;
94 }
95
96 // Token: 0x06001D21 RID: 7457 RVA: 0x0003F9B8 File Offset: 0x0003DBB8
97 public static void RegisterChannel(IChannel chnl, bool ensureSecurity)
98 {
99 if (chnl == null)
100 {
101 throw new OutOfMemoryException();
102 }
103 if (chnl != null)
104 {
105 return;
106 }
107 long num = 0L;
108 string text = string.Format("Channel {0} is not securable while ensureSecurity is specified as true", num);
109 }
110
111 // Token: 0x06001D22 RID: 7458 RVA: 0x0003FA48 File Offset: 0x0003DC48
112 internal static void RegisterChannelConfig(ChannelData channel)
113 {
115 if (channel.ServerProviders == null)
116 {
117 return;
118 }
119 }
120
121 // Token: 0x06001D23 RID: 7459 RVA: 0x0003FC14 File Offset: 0x0003DE14
122 private static object CreateProvider(ProviderData prov)
123 {
124 if (!true)
125 {
126 }
127 object obj;
128 return obj;
129 }
130
131 // Token: 0x06001D24 RID: 7460 RVA: 0x0003FC3C File Offset: 0x0003DE3C
133 {
134 if (!true)
135 {
136 }
138 if (returnMessage != null)
139 {
140 while (returnMessage != null)
141 {
142 }
143 }
144 IMessage message;
145 return ChannelServices.CheckReturnMessage(message, message);
146 }
147
148 // Token: 0x06001D25 RID: 7461 RVA: 0x0003FC5C File Offset: 0x0003DE5C
150 {
151 if ("No receiver for uri " != null)
152 {
153 return "No receiver for uri ";
154 }
155 throw new InvalidCastException();
156 }
157
158 // Token: 0x06001D26 RID: 7462 RVA: 0x0003FC9C File Offset: 0x0003DE9C
160 {
161 while (callMsg == null)
162 {
163 }
164 return callMsg;
165 }
166
167 // Token: 0x06001D27 RID: 7463 RVA: 0x0003FCC0 File Offset: 0x0003DEC0
168 private static bool IsLocalCall(IMessage callMsg)
169 {
170 return true;
171 }
172
173 // Token: 0x06001D28 RID: 7464 RVA: 0x0003FCD0 File Offset: 0x0003DED0
174 internal static object[] GetCurrentChannelInfo()
175 {
176 if (!true)
177 {
178 }
179 long num = 0L;
180 int num2 = 4;
181 if (num == 0L)
182 {
183 long num3 = 0L;
184 if (num2 == 0)
185 {
186 }
187 if (num3 == 0L)
188 {
189 }
190 throw new OutOfMemoryException();
191 }
192 throw new OutOfMemoryException();
193 }
194
195 // Token: 0x06001D29 RID: 7465 RVA: 0x0003FD24 File Offset: 0x0003DF24
196 // Note: this type is marked as 'beforefieldinit'.
198 {
199 if (("Novell.Zenworks.Zmd.Public.UnixServerChannel" == null || "Novell.Zenworks.Zmd.Public.UnixServerChannel" != null) && ("Novell.Zenworks.Zmd.Public.UnixChannel" == null || "Novell.Zenworks.Zmd.Public.UnixChannel" != null))
200 {
201 return;
202 }
203 throw new ArrayTypeMismatchException();
204 }
205
206 // Token: 0x04000EB6 RID: 3766
208
209 // Token: 0x04000EB7 RID: 3767
211
212 // Token: 0x04000EB8 RID: 3768
214
215 // Token: 0x04000EB9 RID: 3769
216 internal static string CrossContextUrl;
217
218 // Token: 0x04000EBA RID: 3770
219 private static IList oldStartModeTypes;
220 }
221}
class f__AnonymousType0<< Count > j__TPar
static IMessageSink CreateClientChannelSinkChain(string url, object remoteChannelData, [Out] string objectUri)
static void RegisterChannelConfig(ChannelData channel)
static void RegisterChannel(IChannel chnl, bool ensureSecurity)
static IMessageSink CreateClientChannelSinkChain(IChannelSender sender, string url, object[] channelDataArray, [Out] string objectUri)
static IMessage CheckReturnMessage(IMessage callMsg, IMessage retMsg)
static IMessage SyncDispatchMessage(IMessage msg)
static ReturnMessage CheckIncomingMessage(IMessage msg)
static object CreateProvider(ProviderData prov)