public RemotingClient() { HttpChannel chnl = new HttpChannel(); ChannelServices.RegisterChannel(chnl, false); Console.WriteLine("fdsf"); Manger = (IManger)Activator.GetObject(typeof(IManger), remotingUrl + "ServerManger.soap"); }
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"); }
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(); }
public void RegsiterToManager(long comID, IManger manger) { manger.Regsiter(comID); _comMangers.Add(comID, manger); }