[Modify] Polish it
This commit is contained in:
parent
25ee637c5a
commit
91fa15564e
@ -1131,12 +1131,12 @@ namespace WebSocketSharp.Server
|
|||||||
/// <paramref name="path"/> is already in use.
|
/// <paramref name="path"/> is already in use.
|
||||||
/// </para>
|
/// </para>
|
||||||
/// </exception>
|
/// </exception>
|
||||||
public void AddWebSocketService<TBehaviorWithNew> (
|
public void AddWebSocketService<TBehavior> (
|
||||||
string path, Action<TBehaviorWithNew> initializer
|
string path, Action<TBehavior> initializer
|
||||||
)
|
)
|
||||||
where TBehaviorWithNew : WebSocketBehavior, new ()
|
where TBehavior : WebSocketBehavior, new ()
|
||||||
{
|
{
|
||||||
_services.AddService<TBehaviorWithNew> (path, initializer);
|
_services.AddService<TBehavior> (path, initializer);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user