[Modify] Replace it
This commit is contained in:
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…
Reference in New Issue
Block a user