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