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: 0x06000B42 RID: 2882 RVA: 0x0003A9D0 File Offset: 0x00038BD0 private static void smethod_0(Class135 class135_2, JsonSchema jsonSchema_0) { class135_2.method_1(class135_2.method_0() || (jsonSchema_0.Required ?? false)); class135_2.Type &= (jsonSchema_0.Type ?? JsonSchemaType.Any); class135_2.method_3(Class79.smethod_3(class135_2.method_2(), jsonSchema_0.MinimumLength)); class135_2.method_5(Class79.smethod_2(class135_2.method_4(), jsonSchema_0.MaximumLength)); class135_2.method_7(Class79.smethod_4(class135_2.method_6(), jsonSchema_0.DivisibleBy)); class135_2.method_9(Class79.smethod_4(class135_2.method_8(), jsonSchema_0.Minimum)); class135_2.method_11(Class79.smethod_4(class135_2.method_10(), jsonSchema_0.Maximum)); class135_2.method_13(class135_2.method_12() || (jsonSchema_0.ExclusiveMinimum ?? false)); class135_2.method_15(class135_2.method_14() || (jsonSchema_0.ExclusiveMaximum ?? false)); class135_2.method_17(Class79.smethod_3(class135_2.method_16(), jsonSchema_0.MinimumItems)); class135_2.method_19(Class79.smethod_2(class135_2.method_18(), jsonSchema_0.MaximumItems)); class135_2.method_33(class135_2.method_32() || jsonSchema_0.PositionalItemsValidation); class135_2.jEdbffsLly(class135_2.method_34() && jsonSchema_0.AllowAdditionalProperties); class135_2.method_36(class135_2.method_35() && jsonSchema_0.AllowAdditionalItems); class135_2.method_38(class135_2.method_37() || jsonSchema_0.UniqueItems); if (jsonSchema_0.Enum != null) { if (class135_2.method_39() == null) { class135_2.method_40(new List <JToken>()); } class135_2.method_39().smethod_8(jsonSchema_0.Enum, JToken.EqualityComparer); } class135_2.method_42(class135_2.method_41() | (jsonSchema_0.Disallow ?? JsonSchemaType.None)); if (jsonSchema_0.Pattern != null) { if (class135_2.method_20() == null) { class135_2.method_21(new List <string>()); } class135_2.method_20().smethod_5(jsonSchema_0.Pattern); } }
internal Class135 method_8(string string_1) { if (!this.method_4().ContainsKey(string_1)) { Class135 class2; this.method_4()[string_1] = class2 = new Class135(string_1, this); return(class2); } return(this.method_4()[string_1]); }
// Token: 0x06000B41 RID: 2881 RVA: 0x0003A980 File Offset: 0x00038B80 public static Class135 Create(IList <JsonSchema> schemata) { Class135 @class = new Class135(); foreach (JsonSchema jsonSchema_ in schemata) { Class135.smethod_0(@class, jsonSchema_); } return(@class); }
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()); }
// Token: 0x06000B4A RID: 2890 RVA: 0x0003AE44 File Offset: 0x00039044 private Class135 method_7(Class137 class137_1) { Class135 @class; if (this.dictionary_0.TryGetValue(class137_1, out @class)) { return(@class); } @class = Class135.Create(class137_1.method_1()); this.dictionary_0[class137_1] = @class; foreach (KeyValuePair <string, Class137> keyValuePair in class137_1.method_2()) { if (@class.method_24() == null) { @class.method_25(new Dictionary <string, Class135>()); } @class.method_24()[keyValuePair.Key] = this.method_7(keyValuePair.Value); } foreach (KeyValuePair <string, Class137> keyValuePair2 in class137_1.method_3()) { if (@class.method_26() == null) { @class.method_27(new Dictionary <string, Class135>()); } @class.method_26()[keyValuePair2.Key] = this.method_7(keyValuePair2.Value); } foreach (Class137 class137_2 in class137_1.method_4()) { if (@class.method_22() == null) { @class.method_23(new List <Class135>()); } @class.method_22().Add(this.method_7(class137_2)); } if (class137_1.method_5() != null) { @class.method_29(this.method_7(class137_1.method_5())); } if (class137_1.method_7() != null) { @class.method_31(this.method_7(class137_1.method_7())); } return(@class); }
public abstract void Visit(Class135 c);
public override void Visit(Class135 c) { }
public void method_31(Class135 class135_2) { this.class135_1 = class135_2; }
public void method_29(Class135 class135_2) { this.class135_0 = class135_2; }
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; }