Class GraphManager
Uses MSGraph to determine a CrashCABN user's privileges.
Inheritance
System.Object
GraphManager
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 SourceGraphManager(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 SourceDetermineAdminStatus(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. |
Dispose()
Declaration
public void Dispose()
Implements
System.IDisposable