[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)
|
||||
where TBehaviorWithNew : WebSocketBehavior, new ()
|
||||
{
|
||||
string msg;
|
||||
if (!checkServicePath (path, out msg)) {
|
||||
_log.Error (msg);
|
||||
return;
|
||||
}
|
||||
|
||||
_services.Add<TBehaviorWithNew> (path, () => new TBehaviorWithNew ());
|
||||
_services.AddService<TBehaviorWithNew> (path, null);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
Reference in New Issue
Block a user