diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-06-04 19:46:22 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-06-04 19:46:22 +0300 |
| commit | 77b37339decd9c023d4ced37e677797f5b72c3ae (patch) | |
| tree | 8a536eda6721abfb310b07cd4b645d1273ef5160 /Software/Visual_Studio/Utilities/Tango.RemoteRunner.UI | |
| parent | 24e5224eb41da3a736c46235567c8ba5484414e3 (diff) | |
| download | Tango-77b37339decd9c023d4ced37e677797f5b72c3ae.tar.gz Tango-77b37339decd9c023d4ced37e677797f5b72c3ae.zip | |
Implemented VSIX remote debugger!!!!
Diffstat (limited to 'Software/Visual_Studio/Utilities/Tango.RemoteRunner.UI')
3 files changed, 13 insertions, 2 deletions
diff --git a/Software/Visual_Studio/Utilities/Tango.RemoteRunner.UI/MainWindowVM.cs b/Software/Visual_Studio/Utilities/Tango.RemoteRunner.UI/MainWindowVM.cs index fd1b05e15..b25f79452 100644 --- a/Software/Visual_Studio/Utilities/Tango.RemoteRunner.UI/MainWindowVM.cs +++ b/Software/Visual_Studio/Utilities/Tango.RemoteRunner.UI/MainWindowVM.cs @@ -29,7 +29,7 @@ namespace Tango.RemoteRunner.UI private UdpDiscoveryService<BasicDiscoveryMessage> _discoveryService; private const int PORT = 9595; private List<FileUpload> _uploads; - private const long MAX_CHUNK_LENGTH = 1024; + private const long MAX_CHUNK_LENGTH = 500000; //500kb private Action<String> _notificationAction; private ObservableCollection<RunningProcess> _runningProcesses; @@ -74,7 +74,7 @@ namespace Tango.RemoteRunner.UI _discoveryService = new UdpDiscoveryService<BasicDiscoveryMessage>(2018, new BasicDiscoveryMessage() { - ServiceName = "Tango Remote Debugger", + ServiceName = "Tango Remote Runner", Port = PORT, }); @@ -192,6 +192,11 @@ namespace Tango.RemoteRunner.UI RunningProcess process = new RunningProcess(); process.Process = Process.Start(Path.Combine(upload.Folder.Path, Path.GetFileName(request.Message.FileName))); + process.Process.Exited += (_, __) => + { + RunningProcesses.Remove(process); + }; + LogManager.Log("Process started " + process.ProcessName + ", " + process.ProcessID); InvokeUINow(() => diff --git a/Software/Visual_Studio/Utilities/Tango.RemoteRunner.UI/Tango.RemoteRunner.UI.csproj b/Software/Visual_Studio/Utilities/Tango.RemoteRunner.UI/Tango.RemoteRunner.UI.csproj index 99921bdcb..cf48ecd39 100644 --- a/Software/Visual_Studio/Utilities/Tango.RemoteRunner.UI/Tango.RemoteRunner.UI.csproj +++ b/Software/Visual_Studio/Utilities/Tango.RemoteRunner.UI/Tango.RemoteRunner.UI.csproj @@ -35,6 +35,9 @@ <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> </PropertyGroup> + <PropertyGroup> + <ApplicationIcon>process_big.ico</ApplicationIcon> + </PropertyGroup> <ItemGroup> <Reference Include="Costura, Version=1.6.2.0, Culture=neutral, PublicKeyToken=9919ef960d84173d, processorArchitecture=MSIL"> <HintPath>..\..\packages\Costura.Fody.1.6.2\lib\dotnet\Costura.dll</HintPath> @@ -153,6 +156,9 @@ <ItemGroup> <EmbeddedResource Include="process_task.ico" /> </ItemGroup> + <ItemGroup> + <Resource Include="process_big.ico" /> + </ItemGroup> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="..\..\packages\Fody.2.0.0\build\dotnet\Fody.targets" Condition="Exists('..\..\packages\Fody.2.0.0\build\dotnet\Fody.targets')" /> <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> diff --git a/Software/Visual_Studio/Utilities/Tango.RemoteRunner.UI/process_big.ico b/Software/Visual_Studio/Utilities/Tango.RemoteRunner.UI/process_big.ico Binary files differnew file mode 100644 index 000000000..fb9f07af2 --- /dev/null +++ b/Software/Visual_Studio/Utilities/Tango.RemoteRunner.UI/process_big.ico |
