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
/// Removes the monitor object from the attached poller.
107
+
/// </summary>
108
+
voidDetachFromPoller();
109
+
110
+
/// <summary>
111
+
/// Starts monitoring the socket. This method doesn't start a new thread and will block until the monitor poll is stopped.
112
+
/// </summary>
113
+
/// <exception cref="InvalidOperationException">The Monitor must not have already started nor attached to a poller.</exception>
114
+
voidStart();
115
+
116
+
/// <summary>
117
+
/// Starts a background task for the monitoring operation.
118
+
/// </summary>
119
+
/// <returns>A task representing the monitoring operation.</returns>
120
+
TaskStartAsync();
121
+
122
+
/// <summary>
123
+
/// Stops monitoring. Blocks until monitoring completed.
124
+
/// </summary>
125
+
/// <exception cref="InvalidOperationException">If this monitor is attached to a poller you must detach it first and not use the <see cref="Stop"/> method.</exception>
/// Start monitor the socket, the method doesn't start a new thread and will block until the monitor poll is stopped
265
-
/// </summary>
266
-
/// <exception cref="InvalidOperationException">The Monitor must not have already started nor attached to a poller.</exception>
210
+
/// <inheritdoc />
267
211
publicvoidStart()
268
212
{
269
213
if(IsRunning)
@@ -287,10 +231,7 @@ public void Start()
287
231
}
288
232
}
289
233
290
-
/// <summary>
291
-
/// Start a background task for the monitoring operation.
292
-
/// </summary>
293
-
/// <returns></returns>
234
+
/// <inheritdoc />
294
235
publicTaskStartAsync()
295
236
{
296
237
if(IsRunning)
@@ -302,10 +243,7 @@ public Task StartAsync()
302
243
returnTask.Factory.StartNew(Start);
303
244
}
304
245
305
-
/// <summary>
306
-
/// Stop monitoring. Blocks until monitoring completed.
307
-
/// </summary>
308
-
/// <exception cref="InvalidOperationException">If this monitor is attached to a poller you must detach it first and not use the stop method.</exception>
0 commit comments