private static void smethod_2(XmlReader xmlReader_0, PlugIn plugIn_0, string string_1) { plugIn_0.dictionary_1 = PropertyUtil.smethod_1(xmlReader_0); while (xmlReader_0.Read()) { if ((xmlReader_0.NodeType == XmlNodeType.Element) && xmlReader_0.IsStartElement()) { string localName = xmlReader_0.LocalName; if (localName.Equals("Runtime")) { if (!xmlReader_0.IsEmptyElement) { Class132.smethod_0(xmlReader_0, plugIn_0, string_1); } } else { if ((!localName.Equals("Auto") && !localName.Equals("Toolbar")) && (!localName.Equals("Menu") && !localName.Equals("Tree"))) { throw new Exception2("根节点不支持的子节点:" + xmlReader_0.LocalName); } if (xmlReader_0.AttributeCount > 0) { throw new Exception2(localName + "节点不能设置属性"); } string str2 = dictionary_0[localName]; Class135 class2 = plugIn_0.method_8(str2); if (!xmlReader_0.IsEmptyElement) { Class135.smethod_0(class2, xmlReader_0, localName); } } } } }
// Token: 0x06001E44 RID: 7748 RVA: 0x00062274 File Offset: 0x00060474 public static void smethod_12(Class321 pd, Enum81 type, BinaryWriter write_stream, uint offset_orig, uint offset_new, Stream stream_orig, Stream stream_new) { switch (type) { case Enum81.const_1: if (!Class136.smethod_3(stream_orig, stream_new)) { type = Enum81.const_0; } break; case Enum81.const_2: if (!Class132.smethod_1(stream_orig, stream_new)) { type = Enum81.const_0; } break; } switch (type) { case Enum81.const_1: Class136.smethod_0(pd, write_stream, offset_orig, offset_new, stream_orig, stream_new); return; case Enum81.const_2: Class132.smethod_2(pd, write_stream, offset_orig, offset_new, stream_orig, stream_new); return; default: Class292.smethod_11(pd, write_stream, offset_orig, stream_orig, stream_new); return; } }
// Token: 0x06002638 RID: 9784 RVA: 0x00086BC4 File Offset: 0x00084DC4 public Class102(Class132 cp, Struct43 contentPackHash, string fileName) { this.dictionary_0 = new Dictionary <string, Class102.Class403>(StringComparer.OrdinalIgnoreCase); this.ID = cp.ID; this.FileName = fileName; this.Name = cp.Name; this.DateInstalled = DateTime.Now; this.InstallState = Enum76.const_0; this.UpdateUri = cp.UpdateUri; this.DataHash = contentPackHash; this.AutoUpdate = (cp.UpdateUri != null); this.VersionType = cp.Type; this.LoaderPack = cp.LoaderPack; this.ContentPackVersion = cp.Version; foreach (KeyValuePair <string, Struct43> keyValuePair in cp.ItemIndex) { if (!this.dictionary_0.ContainsKey(keyValuePair.Key) && Class136.smethod_8(keyValuePair.Key)) { if (this.method_4(keyValuePair.Key)) { this.dictionary_0.Add(keyValuePair.Key, new Class102.Class403(keyValuePair.Value, Enum76.const_0)); } else { this.dictionary_0.Add(keyValuePair.Key, new Class102.Class403(keyValuePair.Value, Enum76.const_3)); } } } }
// Token: 0x06002C4C RID: 11340 RVA: 0x00014CC5 File Offset: 0x00012EC5 public Class504(Class132 cp) { if (cp == null) { throw new ArgumentNullException("cp"); } this.class132_0 = cp; }
private Class1108(Class764 A_0, SubDocumentType A_1) { this.class985_0 = new Class985(); this.class132_0 = new Class132(); this.class136_0 = new Class136(); this.class135_0 = new Class135(); this.class133_0 = new Class133(); this.class131_0 = new Class131(); this.class134_0 = new Class134(); this.class130_0 = new Class130(); this.class130_1 = new Class130(); this.class129_0 = new Class129(); this.stack_0 = new Stack(); this.class764_0 = A_0; this.subDocumentType_0 = A_1; this.class263_0 = new Class263(this.class764_0.method_43()); }
public abstract void Visit(Class132 c);
public override void Visit(Class132 c) { }
// Token: 0x0600263D RID: 9789 RVA: 0x00087018 File Offset: 0x00085218 public void method_5() { this.DateInstalled = DateTime.Now; HashSet <string> hashSet = new HashSet <string>(StringComparer.OrdinalIgnoreCase); lock (((ICollection)this.dictionary_0).SyncRoot) { using (Class132 @class = new Class132(this.FileName, false, false)) { foreach (KeyValuePair <string, Struct43> keyValuePair in @class.ItemIndex) { if (this.dictionary_0.ContainsKey(keyValuePair.Key)) { if (Struct43.smethod_6(keyValuePair.Value, this.dictionary_0[keyValuePair.Key].struct43_0)) { if (this.dictionary_0[keyValuePair.Key].enum76_0 == Enum76.const_1) { this.dictionary_0[keyValuePair.Key].enum76_0 = Enum76.const_3; } this.dictionary_0[keyValuePair.Key].struct43_0 = keyValuePair.Value; } } else if (Class136.smethod_8(keyValuePair.Key)) { if (this.method_4(keyValuePair.Key)) { this.dictionary_0.Add(keyValuePair.Key, new Class102.Class403(keyValuePair.Value, Enum76.const_0)); } else { this.dictionary_0.Add(keyValuePair.Key, new Class102.Class403(keyValuePair.Value, Enum76.const_3)); this.InstallState = Enum76.const_3; } } } foreach (KeyValuePair <string, Class102.Class403> keyValuePair2 in this.dictionary_0) { if ([email protected](keyValuePair2.Key)) { Enum76 @enum = keyValuePair2.Value.enum76_0; if (@enum == Enum76.const_1) { keyValuePair2.Value.enum76_0 = Enum76.const_4; } else { hashSet.Add(keyValuePair2.Key); } } } this.Name = @class.Name; this.UpdateUri = @class.UpdateUri; this.VersionType = @class.Type; this.ContentPackVersion = @class.Version; this.LoaderPack = @class.LoaderPack; if (this.VersionType == Enum82.const_0) { this.DataHash = @class.DataHash; } } if (this.VersionType != Enum82.const_0) { using (Stream stream = File.Open(this.FileName, FileMode.Open, FileAccess.Read, FileShare.None)) { this.DataHash = stream.smethod_2(); } } this.dictionary_0.smethod_8(hashSet); } }
public void Initialize(int port, ICustomizeHandler customizeHandler, IBasicHandler basicHandler) { if (this.emptyAgileLogger_0 == null) { if (this.string_0 == null) { this.emptyAgileLogger_0 = new EmptyAgileLogger(); } else { FileAgileLogger logger = new FileAgileLogger(this.string_0) { MaxLength4ChangeFile = 0x100000L }; this.emptyAgileLogger_0 = (EmptyAgileLogger)logger; } } Class16 class4 = new Class16(); MessageForbiddenHandler class8 = new MessageForbiddenHandler(); CJPlus.Rapid.WssOptions options = this.wssOptions_0 ?? new CJPlus.Rapid.WssOptions(); this.object_0 = Class157.smethod_0((Enum6)0, true, options.X509Certificate2, options.SslProtocols, options.OnlyWssClient); BasicMessageTypeRoom room3 = new BasicMessageTypeRoom(); room3.Initialize(); this.int_0 = room3.Logon; this.int_1 = room3.HeartBeat; CustomizeMessageTypeRoom room4 = new CustomizeMessageTypeRoom(); room4.Initialize(); FileMessageTypeRoom room2 = new FileMessageTypeRoom(); room2.Initialize(); P2PSessionMessageTypeRoom room = new P2PSessionMessageTypeRoom(); room.Initialize(); FriendsMessageTypeRoom room5 = new FriendsMessageTypeRoom(); room5.Initialize(); GroupMessageTypeRoom room6 = new GroupMessageTypeRoom(); room6.Initialize(); ContactsMessageTypeRoom room7 = new ContactsMessageTypeRoom(); room7.Initialize(); this.class40_0 = new Class40(new IMessageTypeRoom[] { room3, room4, room2, room, room5, room6, room7 }, null); this.class40_0.method_2(); this.class98_0 = new UserManager(); this.class98_0.RelogonMode = RelogonMode.ReplaceOld; this.class98_0.method_2(this.int_2); this.class98_0.SetAgileLogger(this.emptyAgileLogger_0); this.class98_0.method_3((IConnection)this.object_0); this.class98_0.Initialize(); this.class135_0 = new Class135(this.class98_0); RegularSender class5 = new RegularSender(); class5.method_0(this.class98_0); class5.method_2(class8); class5.method_1((IAction)this.object_0); class5.method_3(this.emptyAgileLogger_0); if (basicHandler == null) { basicHandler = new EmptyBasicHandler(); } Class159 class7 = new Class159(); class7.Event_0 += new CbGeneric <string, IPEndPoint>(this.OnConnectionBound); class7.method_1(room3); class7.method_3(class4); class7.method_2(this.class98_0); class7.method_7(this.bool_2); class7.method_5(class5); class7.method_8(this.class21_0.DiagnosticsEnabled ? this.class64_0 : basicHandler); class7.method_9(this.class135_0); class7.method_10(this.igroupManager_0 != null); class7.method_12(this.bool_3); class7.method_14(this.bool_4); class7.method_15(); this.class159_0 = class7; if (customizeHandler == null) { customizeHandler = new EmptyCustomizeHandler(); } Server class2 = new Server(); class2.SetStreamContract(class4); class2.SetAgileLogger(this.emptyAgileLogger_0); class2.SetICustomizeHandler(this.class21_0.DiagnosticsEnabled ? this.class64_0 : customizeHandler); class2.SetCustomizeMessageTypeRoom(room4); class2.method_1(class5); class2.SetUserManager(this.class98_0); class2.method_8(this.int_3); class2.method_11(this.class21_0.CheckResponseTTL4Query ? 10 : 0); class2.method_9(this.class135_0); class2.Event_0 += new CbGeneric <string, int, byte[], string>(this.method_6); class2.method_14(this.class21_0.CustomizeInfoHandleMode, this.class21_0.QueueWorkerThreadCount); this.class21_0.method_0((IConnection)this.object_0, this.class21_0.DiagnosticsEnabled ? this.class64_0.method_0() : null, class2.method_13()); this.class112_0 = class2; Class132 class3 = new Class132(); class3.method_1(room); class3.method_0(class4); class3.method_2(class5); class3.method_3(this.class98_0); class3.method_4(this.class135_0); class3.method_5(this.emptyAgileLogger_0); this.class2_0 = new FileTransfering(); this.class2_0.method_0(this.emptyAgileLogger_0); this.class13_0 = new FileHandler(); this.class13_0.method_0(this.emptyAgileLogger_0); this.class2_0.TTL4ResumedFileItem = this.class21_0.TempFile4ResumedTTL; this.class13_0.method_2(class5); this.class13_0.method_3(class4); this.class13_0.imethod_1(0x100000); this.class13_0.method_4(new Class3(0x800)); this.class13_0.method_7(this.class21_0.UseWorkThreadPool); this.class13_0.Initialize("_0", room2.FilePackageData); this.class27_0 = new Parameterized(port); this.class27_0.method_2(this.class21_0.CheckFileZeroSpeedSpanInSecs); this.class27_0.method_0(this.emptyAgileLogger_0); this.class27_0.method_11(this.class13_0); this.class27_0.method_13(room2); this.class27_0.method_12(this.class2_0); this.class27_0.method_14(class4); this.class27_0.method_15(class5); this.class27_0.method_3("_0"); Class69 class6 = new Class69(); class6.method_0(room2); class6.method_6(class5); class6.method_1(class4); class6.method_3(this.class13_0); class6.method_2(this.class2_0); class6.method_4(this.class27_0); this.class98_0.SomeOneDisconnected += new CbGeneric <UserData, DisconnectedType>(this.method_8); this.class25_0.method_6(this.class21_0.DiagnosticsEnabled ? this.class64_0 : this.ifriendsManager_0); this.class25_0.method_1(room5); this.class25_0.method_7(this.class135_0); this.class25_0.method_3(class4); this.class25_0.method_5(class5); this.class25_0.method_2(this.class98_0); this.class25_0.method_9(); this.class139_0.SetMessageTypeRoom(room6); this.class139_0.method_2(class4); this.class139_0.method_4(class5); this.class139_0.method_0(this.class98_0); this.class139_0.SetGroupManager(this.class21_0.DiagnosticsEnabled ? this.class64_0 : this.igroupManager_0); this.class139_0.method_6(this.class135_0); this.class139_0.Init(); this.class60_0.method_1(room7); this.class60_0.method_2(class4); this.class60_0.method_4(class5); this.class60_0.method_0(this.class98_0); this.class60_0.method_5(this.class21_0.DiagnosticsEnabled ? this.class64_0 : this.icontactsManager_0); this.class60_0.method_6(this.class135_0); this.class60_0.method_7(); IProcess[] processers = new IProcess[] { class7, class2, class6, class3, this.class25_0, this.class139_0, this.class60_0 }; MessageDispatcher class9 = new MessageDispatcher(new Class144(new Class115(processers)), class8); class9.imethod_0(this.emptyAgileLogger_0); this.object_0.imethod_22(this); this.object_0.SetAgileLogger(this.emptyAgileLogger_0); this.object_0.LjXdpkRter(this.string_1); this.object_0.SetData(port); this.object_0.imethod_10(GlobalUtil.MaxLengthOfMessage); this.object_0.SetStreamContract(class4); this.object_0.imethod_12(class9); this.object_0.SocketSendBuffSize = this.class21_0.SocketSendBuffSize; this.object_0.imethod_26((this.class21_0.WriteTimeoutInSecs <= 0) ? -1 : (this.class21_0.WriteTimeoutInSecs * 0x3e8)); this.object_0.MaxChannelCacheSize = this.class21_0.MaxChannelCacheSize; this.object_0.Boolean_0 = this.class21_0.Boolean_0; this.object_0.AsynConnectionEvent = this.class21_0.AsynConnectionEvent; this.object_0.UncompletedSendingCount4Busy = this.class21_0.UncompletedSendingCount4Busy; ((BaseTcpEngine)this.object_0).method_1(new Class119(class2, this.class98_0)); this.object_0.Initialize(); if (this.bool_1) { this.class17_0 = new Class17(this.class98_0, new SecurityFileLogger(this.emptyAgileLogger_0)); this.class17_0.method_2(); } if (this.bool_3) { this.object_1 = this.method_9(port + 1); } this.class64_0.ieduNnurne(customizeHandler, basicHandler, this.igroupManager_0, this.ifriendsManager_0, this.icontactsManager_0); this.bool_0 = true; }
// Token: 0x060023B1 RID: 9137 RVA: 0x0000F561 File Offset: 0x0000D761 public Class135(Class102 contentPackSettings, Class132 contentPack) { this.ContentPackSettings = contentPackSettings; this.ContentPack = contentPack; }