コード例 #1
0
            public RemotingClient()
            {
                HttpChannel chnl = new HttpChannel();

                ChannelServices.RegisterChannel(chnl, false);
                Console.WriteLine("fdsf");
                Manger = (IManger)Activator.GetObject(typeof(IManger), remotingUrl + "ServerManger.soap");
            }
コード例 #2
0
        public RemotingClient()
        {
            HttpChannel channel = new HttpChannel();

            if (ChannelServices.RegisteredChannels.Any(e => e == channel))
            {
                ChannelServices.RegisterChannel(channel, false);
            }

            Manger = (IManger)Activator.GetObject(typeof(IManger), remotingUrl + "ServerManger.soap");
        }
コード例 #3
0
ファイル: Utils.cs プロジェクト: sardap/VFVGAVFAF
        public static MangersEnum MangerToMangerEnum(IManger manger)
        {
            if (manger is RenderManager)
            {
                return(MangersEnum.RenderManger);
            }
            if (manger is ColssionComManger)
            {
                return(MangersEnum.CollsionManger);
            }
            if (manger is StepManager)
            {
                return(MangersEnum.StepManger);
            }
            if (manger is InputManger)
            {
                return(MangersEnum.InputManger);
            }

            throw new NotImplementedException();
        }
コード例 #4
0
 public void RegsiterToManager(long comID, IManger manger)
 {
     manger.Regsiter(comID);
     _comMangers.Add(comID, manger);
 }