diff options
| author | Roy <Roy.mail.net@gmail.com> | 2022-10-27 22:53:16 +0300 |
|---|---|---|
| committer | Roy <Roy.mail.net@gmail.com> | 2022-10-27 22:53:16 +0300 |
| commit | 00bed963c45e4de37a6e688c59e0ecc2964d0a11 (patch) | |
| tree | 4a980637ce05cf9d2107b35d391ef39927e6579b /Software/Visual_Studio/PPC/Tango.PPC.Common | |
| parent | 6ee46ce4dcc509248afddc83853cdec3bb74fcd4 (diff) | |
| download | Tango-00bed963c45e4de37a6e688c59e0ecc2964d0a11.tar.gz Tango-00bed963c45e4de37a6e688c59e0ecc2964d0a11.zip | |
Added job name to remote job upload.
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Common')
2 files changed, 4 insertions, 1 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/RemoteJobUpload/DefaultRemoteJobUploadService.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/RemoteJobUpload/DefaultRemoteJobUploadService.cs index e7a13a0fc..ec7e0b22d 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.Common/RemoteJobUpload/DefaultRemoteJobUploadService.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/RemoteJobUpload/DefaultRemoteJobUploadService.cs @@ -20,6 +20,7 @@ namespace Tango.PPC.Common.RemoteJobUpload private class PendingJobUpload { public String ID { get; set; } + public String Name { get; set; } public TemporaryFile File { get; set; } public RemoteJobUploadType Type { get; set; } } @@ -59,6 +60,7 @@ namespace Tango.PPC.Common.RemoteJobUpload PendingJobUpload job = new PendingJobUpload(); job.ID = Guid.NewGuid().ToString(); + job.Name = request.Name; job.File = _jobsFolder.CreateImaginaryFile(); job.Type = request.Type; @@ -96,7 +98,7 @@ namespace Tango.PPC.Common.RemoteJobUpload job.File.Delete(); completion.SetException(new OperationCanceledException(error)); - }) { Type = job.Type, FilePath = job.File.Path }); + }) { Type = job.Type, FilePath = job.File.Path, Name = job.Name }); await completion.Task; } diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/RemoteJobUpload/RemoteJobReceivedEventArgs.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/RemoteJobUpload/RemoteJobReceivedEventArgs.cs index 26eb5803a..190688a7e 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.Common/RemoteJobUpload/RemoteJobReceivedEventArgs.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/RemoteJobUpload/RemoteJobReceivedEventArgs.cs @@ -12,6 +12,7 @@ namespace Tango.PPC.Common.RemoteJobUpload private Action _confirmAction; private Action<String> _abortAction; + public String Name { get; set; } public RemoteJobUploadType Type { get; set; } public String FilePath { get; set; } |
