Beispiel #1
0
        // Token: 0x060004B3 RID: 1203 RVA: 0x00022D74 File Offset: 0x00020F74
        bool IEnumerator.MoveNext()
        {
            int      num = this.int_0;
            Class119 obj = this.class119_0;

            if (num != 0)
            {
                if (num != 1)
                {
                    return(false);
                }
                this.int_0 = -1;
                this.int_2++;
            }
            else
            {
                this.int_0 = -1;
                FieldInfo[] fields = typeof(Class119).GetFields(BindingFlags.DeclaredOnly | BindingFlags.Instance | BindingFlags.Public);
                this.fieldInfo_0 = fields;
                this.int_2       = 0;
            }
            if (this.int_2 >= this.fieldInfo_0.Length)
            {
                this.fieldInfo_0 = null;
                return(false);
            }
            Class159 @class = (Class159)this.fieldInfo_0[this.int_2].GetValue(obj);

            this.class159_0 = @class;
            this.int_0      = 1;
            return(true);
        }
Beispiel #2
0
    // Token: 0x06000994 RID: 2452 RVA: 0x000371A0 File Offset: 0x000353A0
    private void method_16(JsonWriter jsonWriter_0, object object_0, JsonStringContract jsonStringContract_0)
    {
        this.method_17(jsonWriter_0, jsonStringContract_0, object_0);
        string value;

        Class119.smethod_0(object_0, jsonStringContract_0.UnderlyingType, out value);
        jsonWriter_0.WriteValue(value);
        this.method_18(jsonWriter_0, jsonStringContract_0, object_0);
    }
Beispiel #3
0
        public static bool IsValid(this JToken source, JsonSchema schema, out IList <string> errorMessages)
        {
            Class119 class2 = new Class119 {
                ilist_0 = new List <string>()
            };

            source.Validate(schema, new ValidationEventHandler(class2.method_0));
            errorMessages = class2.ilist_0;
            return(errorMessages.Count == 0);
        }
Beispiel #4
0
 internal Class117(string string_3, ClientTimeEnum enum0_1, IAgileLogger iagileLogger_1, Class119 class119_1)
 {
     this.string_0       = "http://59.175.145.163/AuthorizeService.asmx";
     this.string_1       = "http://ws.oraycn.com/AuthorizeService.asmx";
     this.bool_0         = true;
     this.bool_1         = true;
     this.string_2       = "";
     this.int_0          = 0x1d4c0;
     this.object_0       = 1;
     this.int_1          = 30;
     this.int_2          = 0;
     this.nullable_0     = null;
     this.dateTime_0     = DateTime.Now;
     this.int_3          = 0;
     this.int_4          = 0;
     this.bool_2         = false;
     this.bool_3         = false;
     this.string_2       = string_3;
     this.enum0_0        = enum0_1;
     this.iagileLogger_0 = iagileLogger_1;
     this.class119_0     = class119_1;
 }
Beispiel #5
0
    // Token: 0x060009AA RID: 2474 RVA: 0x00038324 File Offset: 0x00036524
    private string method_38(JsonWriter jsonWriter_0, object object_0, JsonContract jsonContract_0, out bool bool_0)
    {
        if (jsonContract_0.enum8_0 == (Enum8)3)
        {
            JsonPrimitiveContract jsonPrimitiveContract = (JsonPrimitiveContract)jsonContract_0;
            switch (jsonPrimitiveContract.method_5())
            {
            case (Enum3)22:
            case (Enum3)23:
            {
                float num = (float)object_0;
                bool_0 = false;
                return(num.ToString("R", CultureInfo.InvariantCulture));
            }

            case (Enum3)24:
            case (Enum3)25:
            {
                double num2 = (double)object_0;
                bool_0 = false;
                return(num2.ToString("R", CultureInfo.InvariantCulture));
            }

            case (Enum3)26:
            case (Enum3)27:
            {
                DateTime dateTime_ = Class25.smethod_2((DateTime)object_0, jsonWriter_0.DateTimeZoneHandling);
                bool_0 = false;
                StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture);
                Class25.smethod_24(stringWriter, dateTime_, jsonWriter_0.DateFormatHandling, jsonWriter_0.DateFormatString, jsonWriter_0.Culture);
                return(stringWriter.ToString());
            }

            case (Enum3)28:
            case (Enum3)29:
            {
                bool_0 = false;
                StringWriter stringWriter2 = new StringWriter(CultureInfo.InvariantCulture);
                Class25.IxisRjgvuh(stringWriter2, (DateTimeOffset)object_0, jsonWriter_0.DateFormatHandling, jsonWriter_0.DateFormatString, jsonWriter_0.Culture);
                return(stringWriter2.ToString());
            }

            default:
            {
                bool_0 = true;
                string result;
                if (jsonPrimitiveContract.bool_2 && Class53.smethod_3(jsonPrimitiveContract.type_0, object_0, null, out result))
                {
                    return(result);
                }
                return(Convert.ToString(object_0, CultureInfo.InvariantCulture));
            }
            }
        }
        else
        {
            string result2;
            if (Class119.smethod_0(object_0, object_0.GetType(), out result2))
            {
                bool_0 = true;
                return(result2);
            }
            bool_0 = true;
            return(object_0.ToString());
        }
    }
Beispiel #6
0
 internal void method_1(Class119 class119_1)
 {
     this.class119_0 = class119_1;
 }
 public abstract void Visit(Class119 c);
 public override void Visit(Class119 c) { }
Beispiel #9
0
 internal AgileTcpListener(int int_5, bool bool_3, string string_2, bool bool_4, bool bool_5, IAgileLogger iagileLogger_2, IAgileLogger iagileLogger_3, Class119 class119_0)
 {
     if ((!bool_3 && ((this.enum0_0 == ((ClientTimeEnum)3)) || (this.enum0_0 == ((ClientTimeEnum)2)))) && smethod_0("ESF-" + this.string_0))
     {
         throw new Exception("CJFramework Error : there's one CJFramework server instance running. AuthorizedUserID is " + this.string_0);
     }
     this.bool_0             = bool_5;
     this.iagileLogger_0     = iagileLogger_2;
     this.iagileLogger_1     = iagileLogger_3;
     this.eventSafeTrigger_0 = new EventSafeTrigger(iagileLogger_2, "Agt5W7B5WBoJhMi3tS0.akDdtXBaxZZh04bUDlN");
     this.class117_0         = new Class117(this.string_0, this.enum0_0, this.iagileLogger_1, class119_0);
     if (!(bool_3 || !this.bool_2))
     {
         this.class117_0.Event_0 += new CbGeneric <bool, bool>(this.method_6);
         this.class117_0.method_2();
     }
     if (cbGeneric_1 == null)
     {
         cbGeneric_1 = new CbGeneric <NetworkStream, EndPoint>(AgileTcpListener.OnTcpConnectionEstablished);
     }
     this.TcpConnectionEstablished += cbGeneric_1;
     this.bool_1 = bool_3;
     this.int_0  = bool_3 ? 0x7fffffff : (this.int_3 + 1);
     if (string_2 != null)
     {
         this.tcpListener_0 = new TcpListener(IPAddress.Parse(string_2), int_5);
     }
     else
     {
         this.tcpListener_0 = new TcpListener(IPAddress.Any, int_5);
         if (Socket.OSSupportsIPv6 && bool_4)
         {
             this.tcpListener_1 = new TcpListener(IPAddress.IPv6Any, int_5);
         }
     }
     this.tcpListener_0.Server.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReuseAddress, bool_3);
     if (this.tcpListener_1 != null)
     {
         this.tcpListener_1.Server.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReuseAddress, bool_3);
     }
 }