C# 클래스 Microsoft.PowerBI.Security.TokenManager

Manages reading / storing tokens for use in the Power BI service
파일 보기 프로젝트 열기: Microsoft/PowerBI-CSharp

공개 메소드들

메소드 설명
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