Beispiel #1
0
 /// <summary>
 /// Removes a WebSocket service with the specified path.
 /// </summary>
 /// <remarks>
 /// The service is stopped with close status 1001 (going away)
 /// if it has already started.
 /// </remarks>
 /// <returns>
 /// <c>true</c> if the service is successfully found and removed;
 /// otherwise, <c>false</c>.
 /// </returns>
 /// <param name="path">
 ///   <para>
 ///   A <see cref="string"/> that specifies an absolute path to
 ///   the service to remove.
 ///   </para>
 ///   <para>
 ///   / is trimmed from the end of the string if present.
 ///   </para>
 /// </param>
 /// <exception cref="ArgumentNullException">
 /// <paramref name="path"/> is <see langword="null"/>.
 /// </exception>
 /// <exception cref="ArgumentException">
 ///   <para>
 ///   <paramref name="path"/> is an empty string.
 ///   </para>
 ///   <para>
 ///   -or-
 ///   </para>
 ///   <para>
 ///   <paramref name="path"/> is not an absolute path.
 ///   </para>
 ///   <para>
 ///   -or-
 ///   </para>
 ///   <para>
 ///   <paramref name="path"/> includes either or both
 ///   query and fragment components.
 ///   </para>
 /// </exception>
 public bool RemoveWebSocketService(string path)
 {
     return(_services.RemoveService(path));
 }