Interface IOrgContext
Functionality for working within the context of a Roster org.
Inherited Members
Namespace: Microsoft.XboxStudios.SQTech.Roster.Client
Assembly: Microsoft.XboxStudios.SQTech.Roster.Client.Common.dll
Syntax
public interface IOrgContext : IMetadataContext, ISecurityContext, IPrincipalSecurityContext, IContainerSecurityContext
Methods
View SourceForProject(string)
Gets the context for a project in this org.
Declaration
IProjectContext ForProject(string projectName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | projectName | The name of a project in this org. |
Returns
| Type | Description |
|---|---|
| IProjectContext | The project context. |
ForUser()
Gets the context for a user in this org.
Declaration
IUserContext ForUser()
Returns
| Type | Description |
|---|---|
| IUserContext | The user context. |
ProjectsWhereUserInRoleAsync(string, CancellationToken)
Gets the name of projects that have the specified role for which the user is a member of.
Declaration
Task<IEnumerable<string>> ProjectsWhereUserInRoleAsync(string roleName, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| string | roleName | The name of the role. |
| CancellationToken | cancellationToken | A CancellationToken for cancelling the asynchronous operation. |
Returns
| Type | Description |
|---|---|
| Task<IEnumerable<string>> | The name of projects that have the specified role and the user is a member of. |