Skip to content

Commit 5632da3

Browse files
committed
[dotnet] Making SlowLoadableComponent more exentsible
Fixes issue #9009
1 parent 54aba4c commit 5632da3

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

dotnet/src/support/UI/SlowLoadableComponent{T}.cs

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,22 @@ public TimeSpan SleepInterval
6969
set { this.sleepInterval = value; }
7070
}
7171

72+
/// <summary>
73+
/// Gets the timeout interval before which this component must be considered loaded.
74+
/// </summary>
75+
protected TimeSpan Timeout
76+
{
77+
get { return this.timeout; }
78+
}
79+
80+
/// <summary>
81+
/// Gets the clock object providing timing for monitoring the load status of this component.
82+
/// </summary>
83+
protected IClock Clock
84+
{
85+
get { return this.clock; }
86+
}
87+
7288
/// <summary>
7389
/// Ensures that the component is currently loaded.
7490
/// </summary>
@@ -125,7 +141,10 @@ protected virtual void HandleErrors()
125141
// no-op by default
126142
}
127143

128-
private void Wait()
144+
/// <summary>
145+
/// Waits between polls of the load status of this component.
146+
/// </summary>
147+
protected virtual void Wait()
129148
{
130149
Thread.Sleep(this.sleepInterval);
131150
}

0 commit comments

Comments
 (0)