public MdUserWrapper(MdUserInfo userInfo) { InitDelegates(); MdUserDllWrapper.CreateMdUser(ref userInfo, out m_handler); RegisterDelegatesToHandler(); }
static void Main(string[] args) { MdUserInfo userInfo = new MdUserInfo(); userInfo.BrokerID = "88888"; userInfo.UserID = ""; userInfo.InvestorID = ""; userInfo.Password = ""; userInfo.FrontID = "tcp://114.80.55.116:42213"; userInfo.FlowPath = "./md/"; mdUser = new MdUserWrapper(userInfo); mdUser.OnFrontConnected += MdUser_onFrontConnected; mdUser.OnRtnDepthMarketData += MdUser_onRtnDepthMarketData; mdUser.OnRspUserLogin += MdUser_onRspUserLogin; mdUser.Connect(); Console.Read(); }
public static extern void CreateMdUser(ref MdUserInfo userInfo, out IntPtr phandler);