Interface IRoleManager
Contains some role related logic.
Namespace: Solti.Utils.Rpc.Interfaces
Assembly: Solti.Utils.Rpc.Interfaces.dll
Syntax
public interface IRoleManager
Methods
GetAssignedRoles(String)
Gets the roles assigned to the given sessionId
.
Declaration
Enum GetAssignedRoles(string sessionId)
Parameters
Type | Name | Description |
---|---|---|
String | sessionId |
Returns
Type | Description |
---|---|
Enum |
Remarks
Returns the value of 0 if the sessionId
is null.
GetAssignedRolesAsync(String, CancellationToken)
Gets the roles assigned to the given sessionId
.
Declaration
Task<Enum> GetAssignedRolesAsync(string sessionId, CancellationToken cancellation)
Parameters
Type | Name | Description |
---|---|---|
String | sessionId | |
CancellationToken | cancellation |
Returns
Type | Description |
---|---|
Task<Enum> |
Remarks
Returns the value of 0 if the sessionId
is null.