|
|
|
@ -194,11 +194,12 @@ namespace WebSocketSharp.Net
|
|
|
|
/// </exception>
|
|
|
|
/// </exception>
|
|
|
|
public bool Contains (string uriPrefix)
|
|
|
|
public bool Contains (string uriPrefix)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
if (_listener.IsDisposed)
|
|
|
|
|
|
|
|
throw new ObjectDisposedException (_listener.GetType ().ToString ());
|
|
|
|
|
|
|
|
|
|
|
|
if (uriPrefix == null)
|
|
|
|
if (uriPrefix == null)
|
|
|
|
throw new ArgumentNullException ("uriPrefix");
|
|
|
|
throw new ArgumentNullException ("uriPrefix");
|
|
|
|
|
|
|
|
|
|
|
|
_listener.CheckDisposed ();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return _prefixes.Contains (uriPrefix);
|
|
|
|
return _prefixes.Contains (uriPrefix);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|