Show / Hide Table of Contents

Class GraphManager

Uses MSGraph to determine a CrashCABN user's privileges.

Inheritance
System.Object
GraphManager
Implements
IGraphManager
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: CrashCABN.DataAccess
Assembly: CrashCABN.DataAccess.dll
Syntax
public class GraphManager : IGraphManager, IDisposable

Constructors

View Source

GraphManager(IAdminCheckDal)

Initializes a new instance of the GraphManager class.

Declaration
public GraphManager(IAdminCheckDal adminDal)
Parameters
Type Name Description
IAdminCheckDal adminDal

The data access interface for admins.

Methods

View Source

DetermineAdminStatus(String, String)

Determines if a user is a CrashCABN Admin or a Title Admin.

Declaration
public async Task<AdminStatus> DetermineAdminStatus(string currentUser, string accessToken)
Parameters
Type Name Description
System.String currentUser

The current user alias.

System.String accessToken

The access token acquired from Azure AD.

Returns
Type Description
System.Threading.Tasks.Task<AdminStatus>

A System.Threading.Tasks.Task<TResult> representing the result of the asynchronous operation.

View Source

Dispose()

Declaration
public void Dispose()

Implements

IGraphManager
System.IDisposable
  • View Source
In This Article
Back to top Generated by DocFX