[Modify] Replace it

master
sta 9 years ago
parent 86e68f7471
commit 286c509f29

@ -1141,7 +1141,7 @@ 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 ()); _services.AddService<TBehaviorWithNew> (path, null);
} }
/// <summary> /// <summary>

Loading…
Cancel
Save