Skip to content

Instantly share code, notes, and snippets.

@DinisCruz
Created April 24, 2015 23:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DinisCruz/9d99355d3bead8af7ec3 to your computer and use it in GitHub Desktop.
Save DinisCruz/9d99355d3bead8af7ec3 to your computer and use it in GitHub Desktop.
StockTrader PoC Scripts (to be executed inside an injected REPL)
var bsl = (ITradeServices)App.BSL;
return bsl.login("uid:1","xxx");
//using Trade.BusinessServiceContract
//using Trade.StockTraderWebApplicationServiceClient
//using StockTrader;
//O2Ref:StockTrader.exe
//O2Ref:PresentationFramework.dll
//O2Ref:PresentationCore.dll
//O2Ref:WindowsBase.dll
//O2Ref:System.Xaml.dll
//O2Ref:Trade.BusinessServiceContract.dll
//O2Ref:Trade.BusinessServiceDataContract.dll
var userInfo = StockTrader.Login.UserInfo;
return userInfo;
//using Trade.BusinessServiceContract
//using Trade.StockTraderWebApplicationServiceClient
//using StockTrader;
//O2Ref:StockTrader.exe
//O2Ref:PresentationFramework.dll
//O2Ref:PresentationCore.dll
//O2Ref:WindowsBase.dll
//O2Ref:System.Xaml.dll
//O2Ref:Trade.BusinessServiceContract.dll
//O2Ref:Trade.BusinessServiceDataContract.dll
var account = new AccountDataModel();
account.profileID = "uid:2";
StockTrader.Login.UserInfo = account;;
return StockTrader.Login.UserInfo;
//userInfo.userID = "123";
//using Trade.BusinessServiceDataContract;
//using Trade.BusinessServiceContract
//using Trade.StockTraderWebApplicationServiceClient
//using StockTrader;
//O2Ref:StockTrader.exe
//O2Ref:PresentationFramework.dll
//O2Ref:PresentationCore.dll
//O2Ref:WindowsBase.dll
//O2Ref:System.Xaml.dll
//O2Ref:Trade.BusinessServiceContract.dll
//O2Ref:Trade.BusinessServiceDataContract.dll
var bsl = (ITradeServices)App.BSL;
StockTrader.Login.UserInfo.profileID = "demoUser";
return StockTrader.Login.UserInfo;
//var accountData = bsl.getAccountProfileData("uid:1");
//return accountData;
//StockTrader.Login.UserInfo = bsl.getAccountData("uid:2");
//return bsl.getAccountData("uid:2");
//return StockTrader.Login.UserInfo;
//return "ok";
//var topPanel = "{name}".popupWindow(700,400);
//bsl.logout("uid:3");
return bsl.getAccountData("asd");
return bsl.typeFullName();
//return bsl.getAccountData
return bsl.login("uid:1","xxx");
//using Trade.BusinessServiceContract
//using Trade.StockTraderWebApplicationServiceClient
//using StockTrader;
//O2Ref:StockTrader.exe
//O2Ref:PresentationFramework.dll
//O2Ref:PresentationCore.dll
//O2Ref:WindowsBase.dll
//O2Ref:System.Xaml.dll
//O2Ref:Trade.BusinessServiceContract.dll
//O2Ref:Trade.BusinessServiceDataContract.dll
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment