C# Класс Microsoft.PowerBI.Security.TokenManager

Manages reading / storing tokens for use in the Power BI service
Показать файл Открыть проект

Открытые методы

Метод Описание
Clear ( ) : void

Clears the token store for all users

ReadToken ( IIdentity identity ) : string

Reads the Power BI token for the specified identity

SetTokenReader ( string>.Func readTokenFactory ) : void

Sets the reader strategy for reading Power BI tokens

SetTokenWriter ( string>.Action writeTokenAction ) : void

Sets the writer strategy for storing Power BI tokens

WriteToken ( IIdentity identity, string accessToken ) : void

Stores a Power BI token and associates it with the specified identity

Приватные методы

Метод Описание
TokenManager ( ) : System

Описание методов

Clear() публичный Метод

Clears the token store for all users
public Clear ( ) : void
Результат void

ReadToken() публичный Метод

Reads the Power BI token for the specified identity
public ReadToken ( IIdentity identity ) : string
identity IIdentity
Результат string

SetTokenReader() публичный Метод

Sets the reader strategy for reading Power BI tokens
public SetTokenReader ( string>.Func readTokenFactory ) : void
readTokenFactory string>.Func The strategy expression used to read tokens
Результат void

SetTokenWriter() публичный Метод

Sets the writer strategy for storing Power BI tokens
public SetTokenWriter ( string>.Action writeTokenAction ) : void
writeTokenAction string>.Action The strategy expression used to store tokens
Результат void

WriteToken() публичный Метод

Stores a Power BI token and associates it with the specified identity
public WriteToken ( IIdentity identity, string accessToken ) : void
identity IIdentity
accessToken string
Результат void