diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2021-08-13 18:19:12 +0300 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2021-08-13 18:19:12 +0300 |
| commit | b7f1dc37a15a354ef7fae439bbcedf1f2133189c (patch) | |
| tree | be0bbb11345b36449e3b54cbcb2def9c096b17f3 /Software/Visual_Studio/Tango.Integration | |
| parent | e7819d9ffabb1efc272e61b4ef93a67d33dca57a (diff) | |
| download | Tango-b7f1dc37a15a354ef7fae439bbcedf1f2133189c.tar.gz Tango-b7f1dc37a15a354ef7fae439bbcedf1f2133189c.zip | |
Added logging for tracing PPC start/stop app buttons behavior.
Diffstat (limited to 'Software/Visual_Studio/Tango.Integration')
| -rw-r--r-- | Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs b/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs index a1d370109..e15a5a0bd 100644 --- a/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs +++ b/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs @@ -1270,6 +1270,8 @@ namespace Tango.Integration.Operation /// <param name="job">The job.</param> protected virtual void OnPrintingStarted(JobHandler handler, Job job, bool isResumed = false) { + LogManager.Log("Raising printing started event..."); + PrintingStarted?.Invoke(this, new PrintingEventArgs(handler, job) { StartDate = _jobStartDate, @@ -1284,6 +1286,8 @@ namespace Tango.Integration.Operation /// <param name="job">The job.</param> protected virtual void OnPrintingCompleted(JobHandler handler, Job job) { + LogManager.Log("Raising printing completed event..."); + PrintingCompleted?.Invoke(this, new PrintingEventArgs(handler, job) { LiquidQuantities = _lastJobLiquidQuantities.ToList(), @@ -1304,6 +1308,8 @@ namespace Tango.Integration.Operation /// <param name="exception">The exception.</param> protected virtual void OnPrintingFailed(JobHandler handler, Job job, Exception exception) { + LogManager.Log("Raising printing failed event..."); + PrintingFailed?.Invoke(this, new PrintingFailedEventArgs(handler, job, exception) { LiquidQuantities = _lastJobLiquidQuantities.ToList(), @@ -1322,6 +1328,8 @@ namespace Tango.Integration.Operation /// <param name="job">The job.</param> protected virtual void OnPrintingAborted(JobHandler handler, Job job) { + LogManager.Log("Raising printing aborted event..."); + PrintingAborted?.Invoke(this, new PrintingEventArgs(handler, job) { LiquidQuantities = _lastJobLiquidQuantities.ToList(), @@ -1340,6 +1348,8 @@ namespace Tango.Integration.Operation /// <param name="job">The job.</param> protected virtual void OnPrintingEnded(JobHandler handler, Job job) { + LogManager.Log("Raising printing ended event..."); + PrintingEnded?.Invoke(this, new PrintingEventArgs(handler, job) { LiquidQuantities = _lastJobLiquidQuantities.ToList(), |
