[dotnet] Making SlowLoadableComponent more exentsible
Fixes issue
@@ -69,6 +69,22 @@ public TimeSpan SleepInterval
set { this.sleepInterval = value; }
}
+ /// <summary>
+ /// Gets the timeout interval before which this component must be considered loaded.
+ /// </summary>
+ protected TimeSpan Timeout
+ {
+ get { return this.timeout; }
+ }
+
+ /// <summary>
+ /// Gets the clock object providing timing for monitoring the load status of this component.
+ /// </summary>
+ protected IClock Clock
+ {
+ get { return this.clock; }
+ }
+
/// <summary>
/// Ensures that the component is currently loaded.
/// </summary>
@@ -125,7 +141,10 @@ protected virtual void HandleErrors()
// no-op by default
}
- private void Wait()
+ /// <summary>
+ /// Waits between polls of the load status of this component.
+ /// </summary>
+ protected virtual void Wait()
{
Thread.Sleep(this.sleepInterval);
}
