C# 클래스 com.microsoft.dx.officewopi.Utils.WopiUtil

파일 보기 프로젝트 열기: OfficeDev/PnP-WOPI 1 사용 예제들

공개 메소드들

메소드 설명
GetActionUrl ( WopiAction action, FileModel file, string authority ) : string

Forms the correct action url for the file and host

GetDiscoveryInfo ( ) : Task>

Gets the discovery information from WOPI discovery and caches it appropriately

PopulateActions ( this file ) : System.Threading.Tasks.Task

Populates a file with action details from WOPI discovery based on the file extension

PopulateActions ( this files ) : System.Threading.Tasks.Task

Populates a list of files with action details from WOPI discovery

ValidateWopiProof ( HttpContext context ) : Task

Validates the WOPI Proof on an incoming WOPI request

비공개 메소드들

메소드 설명
getWopiProof ( HttpContext context ) : Task

Gets the WOPI proof details from the WOPI discovery endpoint and caches it appropriately

verifyProof ( byte expectedProof, string proofFromRequest, string proofFromDiscovery ) : bool

Verifies the proof against a specified key

메소드 상세

GetActionUrl() 공개 정적인 메소드

Forms the correct action url for the file and host
public static GetActionUrl ( WopiAction action, FileModel file, string authority ) : string
action com.microsoft.dx.officewopi.Models.Wopi.WopiAction
file com.microsoft.dx.officewopi.Models.FileModel
authority string
리턴 string

GetDiscoveryInfo() 공개 정적인 메소드

Gets the discovery information from WOPI discovery and caches it appropriately
public static GetDiscoveryInfo ( ) : Task>
리턴 Task>

PopulateActions() 공개 정적인 메소드

Populates a file with action details from WOPI discovery based on the file extension
public static PopulateActions ( this file ) : System.Threading.Tasks.Task
file this
리턴 System.Threading.Tasks.Task

PopulateActions() 공개 정적인 메소드

Populates a list of files with action details from WOPI discovery
public static PopulateActions ( this files ) : System.Threading.Tasks.Task
files this
리턴 System.Threading.Tasks.Task

ValidateWopiProof() 공개 정적인 메소드

Validates the WOPI Proof on an incoming WOPI request
public static ValidateWopiProof ( HttpContext context ) : Task
context System.Web.HttpContext
리턴 Task