private void Start() { var bootstrapper = new Bootstrapper(); var container = bootstrapper.Build(); Log.Info("Initializing reactive trader API..."); var reactiveTraderApi = container.Resolve<IReactiveTrader>(); var username = container.Resolve<IUserProvider>().Username; reactiveTraderApi.Initialize(username, "localhost"); var mainWindow = container.Resolve<MainWindow>(); //var vm = container.Resolve<MainWindowViewModel>(); //mainWindow.DataContext = vm; mainWindow.Show(); var netMQHeartClient = NetMQHeartBeatClient.CreateInstance(null, "ghhasa"); }
private void Start() { var bootstrapper = new Bootstrapper(); var container = bootstrapper.Build(); Log.Info("Initializing reactive trader API..."); var reactiveTraderApi = container.Resolve<IReactiveTrader>(); var username = container.Resolve<IUserProvider>().Username; reactiveTraderApi.Initialize(username, Common.ServiceConstants.Client.ServerAddress); var mainWindow = container.Resolve<MainWindow>(); //var vm = container.Resolve<MainWindowViewModel>(); //mainWindow.DataContext = vm; mainWindow.Show(); //StartHub(); }