public void CreateInstance() { if (FixListObject == null) { try { TcpClientChannel channel = new TcpClientChannel(); ChannelServices.RegisterChannel(channel, false); FixListObject = (IFixListObject)Activator.GetObject(typeof(IFixListObject), "tcp://127.0.0.1:6957/IFixListObject"); //FixListObject = (IFixListObject)Activator.GetObject(typeof(IFixListObject), "tcp://127.0.0.1:6957/IFixListObject"); //int a = FixListObject.Login(); //ChannelServices.UnregisterChannel(channel); } catch (Exception) { //throw; } } }
public void CreateInstance() { if (FixListObject == null) { try { TcpClientChannel channel = new TcpClientChannel(); ChannelServices.RegisterChannel(channel, false); FixListObject = (IFixListObject)Activator.GetObject(typeof(IFixListObject), "tcp://127.0.0.1:6957/IFixListObject"); //FixListObject = (IFixListObject)Activator.GetObject(typeof(IFixListObject), "tcp://127.0.0.1:6957/IFixListObject"); CEntitySuomanager info = null; int r = this.FixListObject.Login(this.GlodSoftDiscern.CurrNo, ref info); //int a = FixListObject.Login(); //ChannelServices.UnregisterChannel(channel); } catch (Exception ex) { throw ex; } } }