[Modify] Replace it

This commit is contained in:
sta 2017-06-06 17:56:29 +09:00
parent 86e68f7471
commit 286c509f29

View File

@ -1141,7 +1141,7 @@ namespace WebSocketSharp.Server
public void AddWebSocketService<TBehaviorWithNew> (string path)
where TBehaviorWithNew : WebSocketBehavior, new ()
{
AddWebSocketService<TBehaviorWithNew> (path, () => new TBehaviorWithNew ());
_services.AddService<TBehaviorWithNew> (path, null);
}
/// <summary>