File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
src/SignalR/server/Core/src/Internal Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ internal sealed class UserProxy<THub> : IClientProxy where THub : Hub
10
10
11
11
public UserProxy ( HubLifetimeManager < THub > lifetimeManager , string userId )
12
12
{
13
+ ArgumentNullException . ThrowIfNull ( userId ) ;
14
+
13
15
_lifetimeManager = lifetimeManager ;
14
16
_userId = userId ;
15
17
}
@@ -44,6 +46,8 @@ internal sealed class GroupProxy<THub> : IClientProxy where THub : Hub
44
46
45
47
public GroupProxy ( HubLifetimeManager < THub > lifetimeManager , string groupName )
46
48
{
49
+ ArgumentNullException . ThrowIfNull ( groupName ) ;
50
+
47
51
_lifetimeManager = lifetimeManager ;
48
52
_groupName = groupName ;
49
53
}
@@ -79,6 +83,8 @@ internal sealed class GroupExceptProxy<THub> : IClientProxy where THub : Hub
79
83
80
84
public GroupExceptProxy ( HubLifetimeManager < THub > lifetimeManager , string groupName , IReadOnlyList < string > excludedConnectionIds )
81
85
{
86
+ ArgumentNullException . ThrowIfNull ( groupName ) ;
87
+
82
88
_lifetimeManager = lifetimeManager ;
83
89
_groupName = groupName ;
84
90
_excludedConnectionIds = excludedConnectionIds ;
@@ -147,6 +153,7 @@ internal sealed class SingleClientProxy<THub> : ISingleClientProxy where THub :
147
153
public SingleClientProxy ( HubLifetimeManager < THub > lifetimeManager , string connectionId )
148
154
{
149
155
_lifetimeManager = lifetimeManager ;
156
+ ArgumentNullException . ThrowIfNull ( connectionId ) ;
150
157
_connectionId = connectionId ;
151
158
}
152
159
You can’t perform that action at this time.
0 commit comments