diff Implab/Components/RunnableComponent.cs @ 252:6f4630d0bcd9 v3

removed absolete Diagnostics classes
author cin
date Mon, 12 Feb 2018 07:24:31 +0300
parents 7c7e9ad6fe4a
children c52691faaf21
line wrap: on
line diff
--- a/Implab/Components/RunnableComponent.cs	Sun Feb 11 00:49:51 2018 +0300
+++ b/Implab/Components/RunnableComponent.cs	Mon Feb 12 07:24:31 2018 +0300
@@ -15,7 +15,7 @@
     public class RunnableComponent : IRunnable, IInitializable, IDisposable {
 
         /// <summary>
-        /// This class bound <see cref="CancellationTokenSource"/> lifetime to the task,
+        /// This class bounds <see cref="CancellationTokenSource"/> lifetime to the task,
         /// when the task completes the associated token source will be disposed.
         /// </summary>
         class AsyncOperationDescriptor {
@@ -161,7 +161,7 @@
         /// <remarks>
         /// This method should be used for short and mostly syncronous operations,
         /// other operations which require time to run shoud be placed in
-        /// <see cref="StartInternal(CancellationToken)"/> method.
+        /// <see cref="StartInternalAsync(CancellationToken)"/> method.
         /// </remarks>
         protected virtual Task InitializeInternalAsync(CancellationToken ct) {
             return Task.CompletedTask;
@@ -170,10 +170,10 @@
         public void Start(CancellationToken ct) {
             var cookie = new object();
             if (MoveStart(cookie))
-                ScheduleTask(StartInternal, ct, cookie);
+                ScheduleTask(StartInternalAsync, ct, cookie);
         }
 
-        protected virtual Task StartInternal(CancellationToken ct) {
+        protected virtual Task StartInternalAsync(CancellationToken ct) {
             return Task.CompletedTask;
         }