Show / Hide Table of Contents

Interface IOrgContext

Functionality for working within the context of a Roster org.

Inherited Members
IMetadataContext.CreateItemAsync(IMetadataItem, CancellationToken)
IMetadataContext.DeleteItemAsync(IMetadataItem, bool, CancellationToken)
IMetadataContext.GetItemByNameAsync<TOut>(string, string, CancellationToken)
IMetadataContext.GetItemsByContainerAsync<TOut>(string, CancellationToken)
IMetadataContext.GetItemsByOwnerAsync<TOut>(string, CancellationToken)
IMetadataContext.UpdateItemAsync(IMetadataItem, CancellationToken)
IMetadataContext.UpdateOrCreateItemAsync(IMetadataItem, CancellationToken)
IPrincipalSecurityContext.UserInRoleAsync(string, CancellationToken)
IPrincipalSecurityContext.UserInSecurityGroupAsync(string, CancellationToken)
IContainerSecurityContext.UserHasContainerPermissionsAsync(string, PermissionFlags, CancellationToken)
Namespace: Microsoft.XboxStudios.SQTech.Roster.Client
Assembly: Microsoft.XboxStudios.SQTech.Roster.Client.Common.dll
Syntax
public interface IOrgContext : IMetadataContext, ISecurityContext, IPrincipalSecurityContext, IContainerSecurityContext

Methods

View Source

ForProject(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.

View Source

ForUser()

Gets the context for a user in this org.

Declaration
IUserContext ForUser()
Returns
Type Description
IUserContext

The user context.

View Source

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.

  • View Source
In this article
Back to top Generated by DocFX