[Modify] Remove it
This commit is contained in:
parent
a86667378f
commit
fa70e8d059
@ -406,33 +406,6 @@ namespace WebSocketSharp.Server
|
|||||||
|
|
||||||
#region Internal Methods
|
#region Internal Methods
|
||||||
|
|
||||||
internal void Add<TBehavior> (string path, Func<TBehavior> creator)
|
|
||||||
where TBehavior : WebSocketBehavior
|
|
||||||
{
|
|
||||||
path = path.TrimSlashFromEnd ();
|
|
||||||
|
|
||||||
lock (_sync) {
|
|
||||||
WebSocketServiceHost host;
|
|
||||||
if (_hosts.TryGetValue (path, out host))
|
|
||||||
throw new ArgumentException ("Already in use.", "path");
|
|
||||||
|
|
||||||
host = new WebSocketServiceHost<TBehavior> (
|
|
||||||
path, creator, null, _log
|
|
||||||
);
|
|
||||||
|
|
||||||
if (!_clean)
|
|
||||||
host.KeepClean = false;
|
|
||||||
|
|
||||||
if (_waitTime != host.WaitTime)
|
|
||||||
host.WaitTime = _waitTime;
|
|
||||||
|
|
||||||
if (_state == ServerState.Start)
|
|
||||||
host.Start ();
|
|
||||||
|
|
||||||
_hosts.Add (path, host);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
internal bool InternalTryGetServiceHost (
|
internal bool InternalTryGetServiceHost (
|
||||||
string path, out WebSocketServiceHost host
|
string path, out WebSocketServiceHost host
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user