[Modify] Replace it
This commit is contained in:
parent
767d2acb0f
commit
894d8cae3e
@ -1083,13 +1083,7 @@ namespace WebSocketSharp.Server
|
|||||||
public void AddWebSocketService<TBehaviorWithNew> (string path)
|
public void AddWebSocketService<TBehaviorWithNew> (string path)
|
||||||
where TBehaviorWithNew : WebSocketBehavior, new ()
|
where TBehaviorWithNew : WebSocketBehavior, new ()
|
||||||
{
|
{
|
||||||
string msg;
|
_services.AddService<TBehaviorWithNew> (path, null);
|
||||||
if (!checkServicePath (path, out msg)) {
|
|
||||||
_log.Error (msg);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
_services.Add<TBehaviorWithNew> (path, () => new TBehaviorWithNew ());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user