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
Показать файл Открыть проект

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