MainPage.xaml.cs 600 B

123456789101112131415161718192021
  1. using System.Threading;
  2. using Microsoft.Phone.Controls;
  3. using Microsoft.VisualStudio.TestPlatform.Core;
  4. using Microsoft.VisualStudio.TestPlatform.TestExecutor;
  5. using vstest_executionengine_platformbridge;
  6. namespace Renci.SshNet.Tests
  7. {
  8. public partial class MainPage : PhoneApplicationPage
  9. {
  10. // Constructor
  11. public MainPage()
  12. {
  13. InitializeComponent();
  14. var wrapper = new TestExecutorServiceWrapper();
  15. new Thread(new ServiceMain((param0, param1) => wrapper.SendMessage((ContractName)param0, param1)).Run).Start();
  16. }
  17. }
  18. }