[Modify] Replace it

This commit is contained in:
sta 2017-03-08 15:57:11 +09:00
parent 767d2acb0f
commit 894d8cae3e

View File

@ -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>