Пример #1
0
 /// <summary>
 /// Instructs the internal TimerManager to remove the reference to the
 /// <see cref="Timer"/> and dispose off all related objects.
 /// </summary>
 /// <returns>true if the reference has been removed, otherwise false.</returns>
 public bool DisposeTimer() => TimerManager.Remove(_name);
Пример #2
0
 /// <summary>
 /// Disposes off a timer previously created with the method
 /// <see cref="SetTimeout(SmartConsole, Action{TimerEventArgs}, double, string)"/>.
 /// </summary>
 /// <param name="console">The used <see cref="SmartConsole"/>.</param>
 /// <param name="name">The name of the associated timer to dispose.</param>
 /// <returns>A reference to the current <see cref="SmartConsole" /> instance.</returns>
 public static SmartConsole ClearTimeout(this SmartConsole console, string name)
 {
     TimerManager.Remove(name);
     return(console);
 }