示例#1
0
    private void method_12(Class724 A_0, Class673 A_1, Class69 A_2, bool A_3)
    {
        spr➓        r➓   = A_2.method_1();
        ShapeObject obj2 = (ShapeObject)A_0.method_3();

        if (this.class672_0.method_10() != null)
        {
            Class1024 class2 = new Class1024();
            int       num    = this.class672_0.method_10().();
            if (obj2.HorizontalRule.method_0())
            {
                spr➓ r➓2 = new spr➓();
                r➓.ᜁ(r➓2);
                r➓ = r➓2;
                smethod_2(obj2.HorizontalRule.method_6(), A_0.method_4().Width, A_0.method_1(), r➓2);
            }
            PointF[]  tfArray = this.method_13(obj2);
            Class1021 class3  = (tfArray == null) ? ((A_3 || A_0.method_14()) ? new Class1021(base.sprℭ_0) : null) : null;
            this.method_14(r➓, num, class2, class3);
            this.method_15(r➓, obj2, A_1, class3);
            this.method_16(r➓, num, class2, class3);
            A_2.method_3((tfArray != null) ? new Class722(tfArray, true) : ((class3 != null) ? class3.method_4() : null));
        }
        this.class315_0.method_1(this.class672_0, r➓);
        if (((obj2.ParentObject != null) && (obj2.ParentObject.DocumentObjectType == DocumentObjectType.ShapeGroup)) && sprḆ.(obj2.HRef))
        {
            r➓.ᜀ(new spr⠱(obj2.BoundsInPoints, obj2.HRef));
        }
    }
示例#2
0
 private void method_18()
 {
     this.list_1.RemoveAt(this.list_1.Count - 1);
     if (this.list_1.Count == 0)
     {
         this.class69_0 = null;
     }
     else
     {
         this.class69_0 = this.list_1[this.list_1.Count - 1];
     }
 }
示例#3
0
    protected spr➓ method_0(Class724 A_0, bool A_1)
    {
        spr➓    r➓     = null;
        Class69 class2 = (Class69)this.hashtable_0[A_0.method_3()];

        if (class2 == null)
        {
            return(r➓);
        }
        A_0.method_2(class2.method_4());
        if (A_1)
        {
            A_0.method_5(class2.method_4().Size);
        }
        A_0.method_13(class2.method_2());
        return(class2.method_1().ᜂ());
    }
示例#4
0
        private bool method_15()
        {
            switch (this.enum10_0)
            {
            case Enum10.CodeWScopeStart:
                base.SetToken(JsonToken.PropertyName, "$code");
                this.enum10_0 = Enum10.CodeWScopeCode;
                return(true);

            case Enum10.CodeWScopeCode:
                this.method_30();
                base.SetToken(JsonToken.String, this.method_24());
                this.enum10_0 = Enum10.CodeWScopeScope;
                return(true);

            case Enum10.CodeWScopeScope:
                if (base.CurrentState != JsonReader.State.PostValue)
                {
                    base.SetToken(JsonToken.StartObject);
                    this.enum10_0 = Enum10.CodeWScopeScopeObject;
                    Class69 class2 = new Class69(Enum11.Object);
                    this.method_19(class2);
                    class2.int_0 = this.method_30();
                    return(true);
                }
                base.SetToken(JsonToken.PropertyName, "$scope");
                return(true);

            case Enum10.CodeWScopeScopeObject:
                bool flag;
                if ((flag = this.method_17()) && (this.JsonToken_0 == JsonToken.EndObject))
                {
                    this.enum10_0 = Enum10.CodeWScopeScopeEnd;
                }
                return(flag);

            case Enum10.CodeWScopeScopeEnd:
                base.SetToken(JsonToken.EndObject);
                this.enum10_0 = Enum10.Normal;
                return(true);
            }
            throw new ArgumentOutOfRangeException();
        }
示例#5
0
        private void method_21(Enum11 enum11_1)
        {
            DateTime time;
            DateTime time2;

            switch (enum11_1)
            {
            case Enum11.Number:
            {
                double num = this.method_29();
                if (base.floatParseHandling_0 != FloatParseHandling.Decimal)
                {
                    base.SetToken(JsonToken.Float, num);
                    return;
                }
                base.SetToken(JsonToken.Float, Convert.ToDecimal(num, CultureInfo.InvariantCulture));
                return;
            }

            case Enum11.String:
            case Enum11.Symbol:
                base.SetToken(JsonToken.String, this.method_24());
                return;

            case Enum11.Object:
            {
                base.SetToken(JsonToken.StartObject);
                Class69 class2 = new Class69(Enum11.Object);
                this.method_19(class2);
                class2.int_0 = this.method_30();
                return;
            }

            case Enum11.Array:
            {
                base.SetToken(JsonToken.StartArray);
                Class69 class3 = new Class69(Enum11.Array);
                this.method_19(class3);
                class3.int_0 = this.method_30();
                return;
            }

            case Enum11.Binary:
                base.SetToken(JsonToken.Bytes, this.method_22());
                return;

            case Enum11.Undefined:
                base.SetToken(JsonToken.Undefined);
                return;

            case Enum11.Oid:
            {
                byte[] buffer = this.method_34(12);
                base.SetToken(JsonToken.Bytes, buffer);
                return;
            }

            case Enum11.Boolean:
            {
                bool flag = Convert.ToBoolean(this.method_20());
                base.SetToken(JsonToken.Boolean, flag);
                return;
            }

            case Enum11.Date:
                time = Class184.smethod_11(this.method_31());
                switch (this.DateTimeKindHandling)
                {
                case DateTimeKind.Unspecified:
                    time2 = DateTime.SpecifyKind(time, DateTimeKind.Unspecified);
                    goto Label_017F;

                case DateTimeKind.Local:
                    time2 = time.ToLocalTime();
                    goto Label_017F;
                }
                break;

            case Enum11.Null:
                base.SetToken(JsonToken.Null);
                return;

            case Enum11.Regex:
            {
                string str  = this.method_23();
                string str2 = this.method_23();
                string str3 = "/" + str + "/" + str2;
                base.SetToken(JsonToken.String, str3);
                return;
            }

            case Enum11.Reference:
                base.SetToken(JsonToken.StartObject);
                this.enum10_0 = Enum10.ReferenceStart;
                return;

            case Enum11.Code:
                base.SetToken(JsonToken.String, this.method_24());
                return;

            case Enum11.CodeWScope:
                base.SetToken(JsonToken.StartObject);
                this.enum10_0 = Enum10.CodeWScopeStart;
                return;

            case Enum11.Integer:
                base.SetToken(JsonToken.Integer, (long)this.method_30());
                return;

            case Enum11.TimeStamp:
            case Enum11.Long:
                base.SetToken(JsonToken.Integer, this.method_31());
                return;

            default:
                throw new ArgumentOutOfRangeException("type", "Unexpected BsonType value: " + enum11_1);
            }
            time2 = time;
Label_017F:
            base.SetToken(JsonToken.Date, time2);
        }
示例#6
0
 private void method_19(Class69 class69_1)
 {
     this.list_1.Add(class69_1);
     this.class69_0 = class69_1;
 }
示例#7
0
        private bool method_17()
        {
            switch (base.CurrentState)
            {
            case JsonReader.State.Start:
            {
                JsonToken newToken = !this.bool_2 ? JsonToken.StartObject : JsonToken.StartArray;
                Enum11    type     = !this.bool_2 ? Enum11.Object : Enum11.Array;
                base.SetToken(newToken);
                Class69 class2 = new Class69(type);
                this.method_19(class2);
                class2.int_0 = this.method_30();
                return(true);
            }

            case JsonReader.State.Complete:
            case JsonReader.State.Closed:
                return(false);

            case JsonReader.State.Property:
                this.method_21(this.enum11_0);
                return(true);

            case JsonReader.State.ObjectStart:
            case JsonReader.State.ArrayStart:
            case JsonReader.State.PostValue:
            {
                Class69 class3 = this.class69_0;
                if (class3 != null)
                {
                    int num = class3.int_0 - 1;
                    if (class3.int_1 < num)
                    {
                        if (class3.enum11_0 == Enum11.Array)
                        {
                            this.method_14();
                            this.method_21(this.enum11_0);
                            return(true);
                        }
                        base.SetToken(JsonToken.PropertyName, this.method_14());
                        return(true);
                    }
                    if (class3.int_1 != num)
                    {
                        throw JsonReaderException.smethod_1(this, "Read past end of current container context.");
                    }
                    if (this.method_20() != 0)
                    {
                        throw JsonReaderException.smethod_1(this, "Unexpected end of object byte value.");
                    }
                    this.method_18();
                    if (this.class69_0 != null)
                    {
                        this.method_33(class3.int_0);
                    }
                    JsonToken token2 = (class3.enum11_0 == Enum11.Object) ? JsonToken.EndObject : JsonToken.EndArray;
                    base.SetToken(token2);
                    return(true);
                }
                return(false);
            }

            case JsonReader.State.ConstructorStart:
            case JsonReader.State.Constructor:
            case JsonReader.State.Error:
            case JsonReader.State.Finished:
                return(false);
            }
            throw new ArgumentOutOfRangeException();
        }
示例#8
0
        // Token: 0x06001468 RID: 5224 RVA: 0x00025340 File Offset: 0x00023540
        public void CurrentPlaylistChange(Enum0 change)
        {
            Class69 class69_ = new Class69(change);

            this.class24_0.method_52(this.class24_0, class69_);
        }
示例#9
0
 protected void method_1(ShapeBase A_0, Class69 A_1)
 {
     this.hashtable_0[A_0] = A_1;
 }
示例#10
0
    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;
    }
示例#11
0
    // Token: 0x060006E8 RID: 1768 RVA: 0x0002CB48 File Offset: 0x0002AD48
    public static void smethod_2(TextWriter textWriter_0, string string_0, char char_0, bool bool_3, object object_0, StringEscapeHandling stringEscapeHandling_0, IArrayPool <char> iarrayPool_0, ref char[] char_1)
    {
        if (bool_3)
        {
            textWriter_0.Write(char_0);
        }
        if (!string.IsNullOrEmpty(string_0))
        {
            int num = Class70.smethod_4(string_0, object_0, stringEscapeHandling_0);
            if (num == -1)
            {
                textWriter_0.Write(string_0);
            }
            else
            {
                if (num != 0)
                {
                    if (char_1 == null || char_1.Length < num)
                    {
                        char_1 = Class69.smethod_2(iarrayPool_0, num, char_1);
                    }
                    string_0.CopyTo(0, char_1, 0, num);
                    textWriter_0.Write(char_1, 0, num);
                }
                int num2;
                for (int i = num; i < string_0.Length; i++)
                {
                    char c = string_0[i];
                    if ((int)c >= object_0.Length || object_0[(int)c])
                    {
                        string text;
                        if (c <= '\\')
                        {
                            switch (c)
                            {
                            case '\b':
                                text = "\\b";
                                break;

                            case '\t':
                                text = "\\t";
                                break;

                            case '\n':
                                text = "\\n";
                                break;

                            case '\v':
                                goto IL_10D;

                            case '\f':
                                text = "\\f";
                                break;

                            case '\r':
                                text = "\\r";
                                break;

                            default:
                                if (c != '\\')
                                {
                                    goto IL_10D;
                                }
                                text = "\\\\";
                                break;
                            }
                        }
                        else if (c != '\u0085')
                        {
                            if (c != '\u2028')
                            {
                                if (c != '\u2029')
                                {
                                    goto IL_10D;
                                }
                                text = "\\u2029";
                            }
                            else
                            {
                                text = "\\u2028";
                            }
                        }
                        else
                        {
                            text = "\\u0085";
                        }
IL_185:
                        if (text == null)
                        {
                            goto IL_229;
                        }
                        bool flag = string.Equals(text, "!", StringComparison.Ordinal);
                        if (i > num)
                        {
                            num2 = i - num + (flag ? 6 : 0);
                            int num3 = flag ? 6 : 0;
                            if (char_1 == null || char_1.Length < num2)
                            {
                                char[] array = Class69.smethod_0(iarrayPool_0, num2);
                                if (flag)
                                {
                                    Array.Copy(char_1, array, 6);
                                }
                                Class69.smethod_1(iarrayPool_0, char_1);
                                char_1 = array;
                            }
                            string_0.CopyTo(num, char_1, num3, num2 - num3);
                            textWriter_0.Write(char_1, num3, num2 - num3);
                        }
                        num = i + 1;
                        if (!flag)
                        {
                            textWriter_0.Write(text);
                            goto IL_229;
                        }
                        textWriter_0.Write(char_1, 0, 6);
                        goto IL_229;
IL_10D:
                        if ((int)c >= object_0.Length)
                        {
                            if (stringEscapeHandling_0 != StringEscapeHandling.EscapeNonAscii)
                            {
                                text = null;
                                goto IL_185;
                            }
                        }
                        if (c == '\'' && stringEscapeHandling_0 != StringEscapeHandling.EscapeHtml)
                        {
                            text = "\\'";
                            goto IL_185;
                        }
                        if (c == '"' && stringEscapeHandling_0 != StringEscapeHandling.EscapeHtml)
                        {
                            text = "\\\"";
                            goto IL_185;
                        }
                        if (char_1 == null || char_1.Length < 6)
                        {
                            char_1 = Class69.smethod_2(iarrayPool_0, 6, char_1);
                        }
                        Class97.smethod_7(c, char_1);
                        text = "!";
                        goto IL_185;
                    }
                    IL_229 :;
                }
                num2 = string_0.Length - num;
                if (num2 > 0)
                {
                    if (char_1 == null || char_1.Length < num2)
                    {
                        char_1 = Class69.smethod_2(iarrayPool_0, num2, char_1);
                    }
                    string_0.CopyTo(num, char_1, 0, num2);
                    textWriter_0.Write(char_1, 0, num2);
                }
            }
        }
        if (bool_3)
        {
            textWriter_0.Write(char_0);
        }
    }