File tree 1 file changed +21
-0
lines changed
src/SignalR/server/Core/src
1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change 2
2
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
3
3
4
4
using System . Collections . Generic ;
5
+ using Microsoft . AspNetCore . Authorization ;
5
6
6
7
namespace Microsoft . AspNetCore . SignalR
7
8
{
9
+ /// <summary>
10
+ /// Context for a Hub invocation.
11
+ /// </summary>
8
12
public class HubInvocationContext
9
13
{
14
+ /// <summary>
15
+ /// Instantiates a new instance of the <see cref="HubInvocationContext"/> class.
16
+ /// </summary>
17
+ /// <param name="context">Context for the active Hub connection and caller.</param>
18
+ /// <param name="hubMethodName">The name of the Hub method being invoked.</param>
19
+ /// <param name="hubMethodArguments">The arguments provided by the client.</param>
10
20
public HubInvocationContext ( HubCallerContext context , string hubMethodName , object [ ] hubMethodArguments )
11
21
{
12
22
HubMethodName = hubMethodName ;
13
23
HubMethodArguments = hubMethodArguments ;
14
24
Context = context ;
15
25
}
16
26
27
+ /// <summary>
28
+ /// Gets the context for the active Hub connection and caller.
29
+ /// </summary>
17
30
public HubCallerContext Context { get ; }
31
+
32
+ /// <summary>
33
+ /// Gets the name of the Hub method being invoked.
34
+ /// </summary>
18
35
public string HubMethodName { get ; }
36
+
37
+ /// <summary>
38
+ /// Gets the arguments provided by the client.
39
+ /// </summary>
19
40
public IReadOnlyList < object > HubMethodArguments { get ; }
20
41
}
21
42
}
You can’t perform that action at this time.
0 commit comments