Пример #1
0
 public void method_3(GInterface0 ginterface0_0)
 {
     this.method_0()(this.uvMyuijdsR(), new object[]
     {
         ginterface0_0
     });
 }
Пример #2
0
 public void method_15(GInterface0 ginterface0_0)
 {
     if (this.method_2())
     {
         this.method_5().SendMessage(ginterface0_0);
     }
 }
Пример #3
0
 public void method_4(GInterface0 ginterface0_0)
 {
     this.method_0()(this.method_2(), new object[]
     {
         ginterface0_0
     });
 }
Пример #4
0
 private void InitializeCommands(GInterface0 _commands)
 {
     this.AddCommand(CommandAdaptor.CreateAdaptor <InstallCommand>());
     this.AddCommand("stop", CommandAdaptor.CreateAdaptor <StopFrameworkCommand>());
     this.AddCommand(CommandAdaptor.CreateAdaptor <StartBundleCommand>());
     this.AddCommand(CommandAdaptor.CreateAdaptor <StopBundleCommand>());
 }
Пример #5
0
 public GClass87(GInterface0 ginterface0_1)
 {
     Class13.lOBHd9Nzn7x2T();
     base..ctor();
     this.Name = "ServerCommandNotification" + ginterface0_1.Id.ToString();
     this.imethod_1(ginterface0_1);
 }
Пример #6
0
        public void method_4(GInterface0 ginterface0_0, bool bool_0)
        {
            DateTime       now            = DateTime.Now;
            TreeHeaderNode treeHeaderNode = TreeNode.smethod_0(ginterface0_0, this.CommandById[(int)ginterface0_0.Id], now, bool_0);

            if (bool_0)
            {
                CommandViewModel commandViewModel = this.CommandById[(int)ginterface0_0.Id];
                int num = commandViewModel.CountReceived;
                commandViewModel.CountReceived = num + 1;
            }
            else
            {
                CommandViewModel commandViewModel2 = this.CommandById[(int)ginterface0_0.Id];
                int num = commandViewModel2.CountSent;
                commandViewModel2.CountSent = num + 1;
            }
            if (this.method_3(treeHeaderNode))
            {
                object @lock = this._lock;
                lock (@lock)
                {
                    this.Filtered.Add(treeHeaderNode);
                }
                if (this.JumpToLast)
                {
                    base.Dispatcher.BeginInvoke(new Action(this.method_11), Array.Empty <object>());
                }
            }
        }
Пример #7
0
    public static bool smethod_0(Type type_0, out int int_0)
    {
        int_0 = 0;
        GInterface0 ginterface = GClass85.smethod_0(type_0) as GInterface0;

        if (ginterface != null)
        {
            int_0 = (int)ginterface.Id;
            return(true);
        }
        return(false);
    }
Пример #8
0
 private void method_8(GInterface0 ginterface0_0)
 {
     GClass82.smethod_3(ginterface0_0);
     if (this.bool_0 && this.gameManager_0.Connection.IsAuthenticated)
     {
         this.bool_1 = true;
         this.commandDispatcher_1.method_0(ginterface0_0);
         if (this.bool_1)
         {
             this.gclass84_0.SendMessage(ginterface0_0);
         }
     }
 }
Пример #9
0
        public void method_0(GInterface0 ginterface0_0)
        {
            short             id = ginterface0_0.Id;
            MulticastDelegate multicastDelegate;

            if (this.Handlers.TryGetValue(id, out multicastDelegate))
            {
                multicastDelegate.DynamicInvoke(new object[]
                {
                    ginterface0_0
                });
            }
        }
Пример #10
0
 private void method_7(GInterface0 ginterface0_0)
 {
     this.bool_2 = true;
     this.commandDispatcher_0.method_0(ginterface0_0);
     if (this.bool_0 && this.bool_2)
     {
         GameManager gameManager = this.gameManager_0;
         if (gameManager == null)
         {
             return;
         }
         gameManager.Connection.SendMessage(ginterface0_0);
     }
 }
Пример #11
0
 static GClass86()
 {
     Class13.NP5bWyNzLwONS();
     GClass86.dictionary_0 = new Dictionary <int, Type>();
     foreach (Type type in typeof(GClass86).Assembly.GetTypes())
     {
         if (typeof(GInterface0).IsAssignableFrom(type))
         {
             GInterface0 ginterface = GClass85.smethod_0(type) as GInterface0;
             if (ginterface != null)
             {
                 GClass86.dictionary_0[(int)ginterface.Id] = type;
             }
         }
     }
 }
Пример #12
0
    private bool method_15(BinaryStream binaryStream_2, int int_6)
    {
        if (!this.method_13(binaryStream_2, int_6))
        {
            return(false);
        }
        long position = this.method_7().Position;

        this.method_7().Position = 0L;
        short       num;
        GInterface0 ginterface = this.method_8(this.method_7(), out num);

        this.int_5++;
        ConnectionManager connection = this.Connection;

        if (connection != null)
        {
            connection.method_17();
        }
        if (ginterface != null)
        {
            try
            {
                Action <GInterface0> action = this.method_0();
                if (action != null)
                {
                    action(ginterface);
                }
                GClass82.GDelegate4 gdelegate = this.gdelegate4_1;
                if (gdelegate != null)
                {
                    gdelegate(ginterface);
                }
            }
            catch (Exception ex)
            {
                this.Log.Error(ex, "[{tag}] Error while executing command {commandName} {exception}", new object[]
                {
                    this.method_2(),
                    ginterface.GetType().FullName,
                    ex
                });
            }
        }
        this.method_11();
        return(true);
    }
Пример #13
0
        public static TreeHeaderNode smethod_0(GInterface0 ginterface0_0, CommandViewModel commandViewModel_0, DateTime dateTime_0, bool bool_0)
        {
            string value = "{\"loading\": \"failed\"}";

            try
            {
                value = JsonConvert.SerializeObject(ginterface0_0);
            }
            catch
            {
            }
            object         object_        = JsonConvert.DeserializeObject <Dictionary <string, object> >(value);
            TreeHeaderNode treeHeaderNode = new TreeHeaderNode(commandViewModel_0, dateTime_0, bool_0);

            TreeNode.smethod_1(object_, treeHeaderNode);
            return(treeHeaderNode);
        }
Пример #14
0
    public void SendMessage(GInterface0 ginterface0_0)
    {
        LogManager.GetLogger("Base-Net-Out").Info <string, string, short>("[{tag}] Sending command {commandName} ({id})", this.method_2(), ginterface0_0.GetType().Name, ginterface0_0.Id);
        object obj = this.object_0;

        lock (obj)
        {
            this.method_6().Position = 2L;
            ginterface0_0.imethod_1(this.method_6());
            int num  = (int)(this.method_6().Position - 2L);
            int num2 = 2;
            if (num >= 65535)
            {
                this.method_6().Position = 0L;
                this.method_6().Write(ushort.MaxValue);
                this.method_6().Write((uint)num);
                ginterface0_0.imethod_1(this.method_6());
                num2 += 4;
            }
            else
            {
                this.method_6().Position = 0L;
                this.method_6().Write((short)num);
            }
            mEx4t12ZDFVtTbDWQkm mEx4t12ZDFVtTbDWQkm = this.method_4();
            mEx4t12ZDFVtTbDWQkm.imethod_0(this.byte_0, 0, num + num2);
            try
            {
                this.Socket.method_3().GetStream().Write(this.byte_0, 0, num + num2);
            }
            catch
            {
            }
        }
        GClass82.GDelegate4 gdelegate = this.gdelegate4_0;
        if (gdelegate == null)
        {
            return;
        }
        gdelegate(ginterface0_0);
    }
Пример #15
0
 public void SendMessage(GInterface0 ginterface0_0)
 {
     if (ginterface0_0 == null)
     {
         return;
     }
     Trace.WriteLine(string.Format("Sending command id={0} {1}", ginterface0_0.Id, ginterface0_0.GetType().Name));
     if (!this.IsAuthenticated)
     {
         if (this.method_1((int)ginterface0_0.Id))
         {
             GClass93 socket = this.Socket;
             if (socket == null)
             {
                 return;
             }
             socket.method_15(ginterface0_0);
             return;
         }
         else
         {
             Queue <GInterface0> commandQueue = this.CommandQueue;
             if (commandQueue == null)
             {
                 return;
             }
             commandQueue.Enqueue(ginterface0_0);
             return;
         }
     }
     else
     {
         GClass93 socket2 = this.Socket;
         if (socket2 == null)
         {
             return;
         }
         socket2.method_15(ginterface0_0);
         return;
     }
 }
Пример #16
0
    public static void smethod_3(GInterface0 ginterface0_0)
    {
        Logger logger = LogManager.GetLogger("Base-Net-Handlers");
        LinkedList <GClass82.GClass83> linkedList;

        if (!GClass82.dictionary_0.TryGetValue((int)ginterface0_0.Id, out linkedList))
        {
            return;
        }
        if (logger.IsTraceEnabled)
        {
            logger.Trace <string, short>("Executing command {commandName} ({id})", ginterface0_0.GetType().Name, ginterface0_0.Id);
        }
        foreach (GClass82.GClass83 gclass in linkedList)
        {
            try
            {
                gclass.method_4(ginterface0_0);
            }
            catch
            {
            }
        }
    }
Пример #17
0
 private void method_5(GInterface0 ginterface0_0)
 {
     this.method_4(ginterface0_0, true);
 }
Пример #18
0
 public void imethod_1(GInterface0 ginterface0_1)
 {
     this.ginterface0_0 = ginterface0_1;
 }
Пример #19
0
 private void method_6(GInterface0 ginterface0_0)
 {
     this.method_4(ginterface0_0, false);
 }