private void OnSomeOneConnected(NetworkStream networkStream_0, EndPoint endPoint_0) { networkStream_0.WriteTimeout = this.int_4; Interface5 interface2 = this.vmethod_2(networkStream_0, (IPEndPoint)endPoint_0); if (Class134.smethod_0().object_0 == null) { networkStream_0.Close(); networkStream_0.Dispose(); } else { this.class142_0.method_4(interface2); this.eventSafeTrigger_0.Action <IPEndPoint>("SomeOneConnected", this.SomeOneConnected, interface2.GetIPEndPoint()); this.ReceiveFirstMessage(interface2); } }
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 virtual void Initialize() { this.cbGeneric_0 = new CbGeneric <Interface5, IMessageHandler>(this.OnMessageReceived); this.class39_0 = new AgileTcpListener(this.int_0, this.TfuhhomjeB, this.string_1, this.bool_3, this.bool_4, this.emptyAgileLogger_0, this.fileAgileLogger_0, this.class119_0); this.class39_0.method_1(this); this.class39_0.TcpConnectionEstablished += new CbGeneric <NetworkStream, EndPoint>(this.OnSomeOneConnected); this.class39_0.method_5(this.int_3); this.class39_0.method_3(this.int_2); this.class142_0.Event_0 += new CbSimpleInt(this.OnConnectionCountChanged); this.class142_0.Event_1 += new CbGeneric <Interface5>(this.OnSomeOneDisconnected); this.class142_0.method_2(this.fileAgileLogger_0); this.class39_0.method_8(); this.bool_0 = false; if (!this.imethod_31()) { this.int_0 = -1; } Class134.smethod_0().WfJlzZyoUa(this.TfuhhomjeB, this.fileAgileLogger_0); }
public abstract void Visit(Class134 c);
public override void Visit(Class134 c) { }
private JsonSchema method_5(Type type_0, Required required_0, bool bool_0) { JsonConverter converter; Class134 class4 = new Class134 { type_0 = type_0 }; Class203.smethod_2(class4.type_0, "type"); string str = this.method_4(class4.type_0, false); string str2 = this.method_4(class4.type_0, true); if (!string.IsNullOrEmpty(str)) { JsonSchema schema = this.jsonSchemaResolver_0.GetSchema(str); if (schema != null) { if ((required_0 != Required.Always) && !smethod_0(schema.Type, JsonSchemaType.Null)) { schema.Type = ((JsonSchemaType)schema.Type) | JsonSchemaType.Null; } if (bool_0 && (schema.Required != true)) { schema.Required = true; } return(schema); } } if (this.ilist_0.Any <Class133>(new Func <Class133, bool>(class4.method_0))) { throw new JsonException("Unresolved circular reference for type '{0}'. Explicitly define an Id for the type using a JsonObject/JsonArray attribute or automatically generate a type Id using the UndefinedSchemaIdHandling property.".smethod_0(CultureInfo.InvariantCulture, class4.type_0)); } JsonContract contract = this.ContractResolver.ResolveContract(class4.type_0); if (((converter = contract.Converter) != null) || ((converter = contract.JsonConverter_0) != null)) { JsonSchema schema2 = converter.GetSchema(); if (schema2 != null) { return(schema2); } } this.method_0(new Class133(class4.type_0, new JsonSchema())); if (str2 != null) { this.JsonSchema_0.Id = str2; } if (bool_0) { this.JsonSchema_0.Required = true; } this.JsonSchema_0.Title = this.method_2(class4.type_0); this.JsonSchema_0.Description = this.method_3(class4.type_0); if (converter != null) { this.JsonSchema_0.Type = 0x7f; } else { switch (contract.enum15_0) { case Enum15.Object: this.JsonSchema_0.Type = new JsonSchemaType?(this.method_6(JsonSchemaType.Object, required_0)); this.JsonSchema_0.Id = this.method_4(class4.type_0, false); this.method_8(class4.type_0, (JsonObjectContract)contract); goto Label_04CD; case Enum15.Array: { this.JsonSchema_0.Type = new JsonSchemaType?(this.method_6(JsonSchemaType.Array, required_0)); this.JsonSchema_0.Id = this.method_4(class4.type_0, false); JsonArrayAttribute attribute = Class139.smethod_0(class4.type_0) as JsonArrayAttribute; bool flag = (attribute == null) || attribute.AllowNullItems; Type type = Class194.smethod_18(class4.type_0); if (type != null) { this.JsonSchema_0.Items = new List <JsonSchema>(); this.JsonSchema_0.Items.Add(this.method_5(type, !flag ? Required.Always : Required.Default, false)); } goto Label_04CD; } case Enum15.Primitive: this.JsonSchema_0.Type = new JsonSchemaType?(this.method_10(class4.type_0, required_0)); if (((((JsonSchemaType)this.JsonSchema_0.Type) == JsonSchemaType.Integer) && class4.type_0.smethod_7()) && !class4.type_0.IsDefined(typeof(FlagsAttribute), true)) { this.JsonSchema_0.Enum = new List <JToken>(); foreach (Class187 <long> class3 in Class186.smethod_2 <long>(class4.type_0)) { JToken item = JToken.FromObject(class3.Prop_0); this.JsonSchema_0.Enum.Add(item); } } goto Label_04CD; case Enum15.String: { JsonSchemaType type2 = !Class194.smethod_9(contract.UnderlyingType) ? JsonSchemaType.String : this.method_6(JsonSchemaType.String, required_0); this.JsonSchema_0.Type = new JsonSchemaType?(type2); goto Label_04CD; } case Enum15.Dictionary: Type type3; Type type4; this.JsonSchema_0.Type = new JsonSchemaType?(this.method_6(JsonSchemaType.Object, required_0)); Class194.smethod_19(class4.type_0, out type3, out type4); if ((type3 != null) && (this.ContractResolver.ResolveContract(type3).enum15_0 == Enum15.Primitive)) { this.JsonSchema_0.AdditionalProperties = this.method_5(type4, Required.Default, false); } goto Label_04CD; case Enum15.Dynamic: case Enum15.Linq: this.JsonSchema_0.Type = 0x7f; goto Label_04CD; case Enum15.Serializable: this.JsonSchema_0.Type = new JsonSchemaType?(this.method_6(JsonSchemaType.Object, required_0)); this.JsonSchema_0.Id = this.method_4(class4.type_0, false); this.method_9(class4.type_0, (JsonISerializableContract)contract); goto Label_04CD; } throw new JsonException("Unexpected contract type: {0}".smethod_0(CultureInfo.InvariantCulture, contract)); } Label_04CD: return(this.method_1().JsonSchema_0); }