You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: nanoFramework.Runtime.Native/Power.cs
+17-10
Original file line number
Diff line number
Diff line change
@@ -22,22 +22,26 @@ public class Power
22
22
/// Occurs before the device reboots.
23
23
/// </summary>
24
24
/// <remarks>
25
-
/// The event handlers may have an execution constraint placed on them by the caller of the <see cref="RebootDevice()"/> method.
25
+
/// The event handlers may have an execution constraint placed on them by the caller of the <see cref="RebootDevice(RebootOption)"/> method.
26
26
/// Therefore, it is recommended that the event handlers perform short, atomic operations.
27
27
/// </remarks>
28
28
publicstaticeventRebootEventHandlerOnRebootEvent;
29
29
30
30
/// <summary>
31
-
/// Forces a reboot of the device.
31
+
/// Forces a reboot of the device using the optional <paramref name="rebootOption"/> parameter.
32
32
/// </summary>
33
33
/// <remarks>
34
+
/// <para>
34
35
/// This method raises the <see cref="OnRebootEvent"/>. If there are any handlers subscribing to <see cref="OnRebootEvent"/>, the reboot will occur only after all handlers complete their execution, regardless of the time taken.
35
-
/// To set a timeout for the handlers to complete, use the <see cref="RebootDevice(int)"/> method and specify an execution constraint.
36
+
/// To set a timeout for the handlers to complete, use the <see cref="RebootDevice(int, RebootOption)"/> method and specify an execution constraint.
37
+
/// </para>
38
+
/// <para>
39
+
/// If the rebootOptions parameter is set to an option other than <see cref="RebootOption.ClrOnly"/>, any ongoing debug session will be terminated.
0 commit comments