GraphCredential Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the GraphCredential class.
public GraphCredential(Microsoft.Teams.Apps.Files.FileActor actor, Func<System.Threading.CancellationToken,System.Threading.Tasks.Task<string?>> token, Uri? baseUrlRoot = default);
new Microsoft.Teams.Apps.Files.GraphCredential : Microsoft.Teams.Apps.Files.FileActor * Func<System.Threading.CancellationToken, System.Threading.Tasks.Task<string>> * Uri -> Microsoft.Teams.Apps.Files.GraphCredential
Public Sub New (actor As FileActor, token As Func(Of CancellationToken, Task(Of String)), Optional baseUrlRoot As Uri = Nothing)
Parameters
- actor
- FileActor
Which identity this credential belongs to.
- token
- Func<CancellationToken,Task<String>>
Resolves the bearer token, or null when no credential is available.
- baseUrlRoot
- Uri
Graph host root, e.g. https://graph.microsoft.com. The API version is appended at the point of use. Carried here so a new code path cannot wire the token through and forget its destination.