WebSocketServiceManagerTryGetServiceHost Method |
Tries to get the host instance for a WebSocket service with
the specified path.
Namespace:
Sfs2X.WebSocketSharp.Server
Assembly:
SmartFox2X (in SmartFox2X.dll) Version: 1.8.0.0 (1.8.0)
Syntax public bool TryGetServiceHost(
string path,
out WebSocketServiceHost host
)
Parameters
- path
- Type: SystemString
A String that represents an absolute path to
the service to find.
- host
- Type: Sfs2X.WebSocketSharp.ServerWebSocketServiceHost
When this method returns, a WebSocketServiceHost
instance or if not found.
That host instance provides the function to access
the information in the service.
Return Value
Type:
Booleantrue if the service is successfully found;
otherwise,
false.
Exceptions Exception | Condition |
---|
ArgumentNullException | path is .
|
ArgumentException | path is empty.
-or-
path is not an absolute path.
-or-
path includes either or both
query and fragment components.
|
Remarks path is converted to a URL-decoded string and
/ is trimmed from the end of the converted string if any.
See Also