Skip to content
This repository was archived by the owner on Dec 22, 2021. It is now read-only.

Commit f2c5d20

Browse files
committed
Merge branch 'patch/issue-7'
2 parents cbee169 + 0347f5c commit f2c5d20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

LanguageServer/NotificationHandlerCollection.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ public class NotificationHandlerCollection
88
private readonly Dictionary<string, NotificationHandler> dictionary = new Dictionary<string, NotificationHandler>();
99

1010
public void Set<TRequest>(string rpcMethod, Action<TRequest> handler)
11-
where TRequest : RequestMessageBase
11+
where TRequest : NotificationMessageBase
1212
{
1313
void Action(object request, Connection _) => handler((TRequest) request);
1414
var value = new NotificationHandler(rpcMethod, typeof(TRequest), Action);
1515
dictionary[rpcMethod] = value;
1616
}
1717

1818
public void Set<TRequest>(string rpcMethod, Action<TRequest, Connection> handler)
19-
where TRequest : RequestMessageBase
19+
where TRequest : NotificationMessageBase
2020
{
2121
void Action(object request, Connection connection) => handler((TRequest) request, connection);
2222
var value = new NotificationHandler(rpcMethod, typeof(TRequest), Action);

0 commit comments

Comments
 (0)