diff Implab.Test/MockPollComponent.cs @ 262:f1696cdc3d7a v3 v3.0.8

Added IInitializable.Initialize() overload Added IRunnable.Start(), IRunnable.Start() overloads Fixed cancellation of the current operation when Stop() is called More tests
author cin
date Mon, 16 Apr 2018 02:12:39 +0300
parents 547a2fc0d93e
children
line wrap: on
line diff
--- a/Implab.Test/MockPollComponent.cs	Fri Apr 13 19:15:11 2018 +0300
+++ b/Implab.Test/MockPollComponent.cs	Mon Apr 16 02:12:39 2018 +0300
@@ -21,11 +21,13 @@
         }
 
         protected async override Task StopInternalAsync(CancellationToken ct) {
+            await base.StopInternalAsync(ct);
             if (StopWorker != null)
                 await StopWorker.Invoke(ct);
         }
 
         protected async override Task StartInternalAsync(CancellationToken ct) {
+            await base.StartInternalAsync(ct);
             if (StartWorker != null)
                 await StartWorker.Invoke(ct);
         }