示例#1
0
    public IMessageHandler ProcessMessage(IMessageHandler interface37_0)
    {
        IHeader         interface3;
        IMessageHandler interface4;

        if (interface37_0.Header.MessageType == this.object_0.PingByServer)
        {
            interface3             = this.interface9_0.imethod_7(interface37_0.Header);
            interface3.MessageType = this.object_0.PingAck;
            interface4             = this.interface9_0.imethod_2 <Class110>(interface3, null);
            this.interface31_0.imethod_0(interface4, true, ActionTypeOnChannelIsBusy.Continue);
            return(null);
        }
        if (interface37_0.Header.MessageType == this.object_0.PingByP2PChannel)
        {
            interface3             = this.interface9_0.imethod_7(interface37_0.Header);
            interface3.MessageType = this.object_0.PingAck;
            interface4             = this.interface9_0.imethod_2 <Class110>(interface3, null);
            this.interface31_0.imethod_0(interface4, true, ActionTypeOnChannelIsBusy.Continue);
            return(null);
        }
        if (interface37_0.Header.MessageType == this.object_0.BeingPushedOutNotify)
        {
            this.class113_0.method_8();
            return(null);
        }
        if (interface37_0.Header.MessageType == this.object_0.BeingKickedOutNotify)
        {
            this.class113_0.method_9();
            return(null);
        }
        if (interface37_0.Header.MessageType == this.object_0.CallClient)
        {
            CallClientContract contract = this.interface9_0.imethod_1 <CallClientContract>(interface37_0);
            new Class117().method_8(contract.InstanceID, this.interface4_0.GetAgileIPE().String_0, this.interface4_0.GetAgileIPE().Port);
            return(null);
        }
        return(null);
    }
示例#2
0
    private void method_16(int int_0)
    {
        using (List <string> .Enumerator enumerator = this.CvQxwfyNwa.GetOnlineUserList().GetEnumerator())
        {
            string             current;
            UserData           userData;
            CallClientContract contract;
            while (enumerator.MoveNext())
            {
                current  = enumerator.Current;
                userData = this.CvQxwfyNwa.GetUserData(current);
                if ((userData != null) && (userData.ClientType == ClientType.DotNET))
                {
                    goto Label_004A;
                }
            }
            return;

Label_004A:
            contract = new CallClientContract(int_0);
            IMessageHandler interface2 = this.interface9_0.imethod_4 <CallClientContract>("_0", this.object_0.CallClient, contract, current);
            this.interface40_0.PostMessage(interface2, userData.Address, ActionTypeOnChannelIsBusy.Continue);
        }
    }