Created
April 24, 2015 23:53
-
-
Save DinisCruz/9d99355d3bead8af7ec3 to your computer and use it in GitHub Desktop.
StockTrader PoC Scripts (to be executed inside an injected REPL)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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