C# 클래스 WopiHost.Url.WopiUrlGenerator

Generates WOPI URLs according to the specification WOPI v2 spec: http://wopi.readthedocs.io/en/latest/discovery.html WOPI v1 spec: https://msdn.microsoft.com/en-us/library/hh695362(v=office.12).aspx
파일 보기 프로젝트 열기: petrsvihlik/WopiHost

Private Properties

프로퍼티 타입 설명
ResolveOptionalParameter string

공개 메소드들

메소드 설명
GetContainerUrl ( string containerIdentifier, string accessToken ) : string
GetFileUrlAsync ( string extension, string fileIdentifier, string accessToken, WopiActionEnum action, WopiUrlSettings urlSettings = null ) : Task

Generates an URL for a given file and action.

WopiUrlGenerator ( string wopiClientUrl, string wopiHostUrl, WopiUrlSettings urlSettings = null ) : System

Creates a new instance of WOPI URL generator class.

비공개 메소드들

메소드 설명
ResolveOptionalParameter ( string name, string value, WopiUrlSettings urlSettings ) : string

메소드 상세

GetContainerUrl() 공개 메소드

public GetContainerUrl ( string containerIdentifier, string accessToken ) : string
containerIdentifier string
accessToken string
리턴 string

GetFileUrlAsync() 공개 메소드

Generates an URL for a given file and action.
public GetFileUrlAsync ( string extension, string fileIdentifier, string accessToken, WopiActionEnum action, WopiUrlSettings urlSettings = null ) : Task
extension string File extension used to identify a correct URL template.
fileIdentifier string Identifier of a file which an object of interest.
accessToken string Access token that will be added to the URL.
action WopiActionEnum Action used to identify a correct URL template.
urlSettings WopiUrlSettings Additional URL settings (if not specified, defaults passed to the class constructor will be used).
리턴 Task

WopiUrlGenerator() 공개 메소드

Creates a new instance of WOPI URL generator class.
public WopiUrlGenerator ( string wopiClientUrl, string wopiHostUrl, WopiUrlSettings urlSettings = null ) : System
wopiClientUrl string URL of the WOPI client (OWA/OOS/etc.)
wopiHostUrl string URL of the WOPI host (endpoint serving the content to WOPI client).
urlSettings WopiUrlSettings Additional settings influencing behavior of the WOPI client.
리턴 System