C# Класс com.microsoft.dx.officewopi.Utils.WopiExtensions

Provides processing extensions for each of the WOPI operations
Показать файл Открыть проект

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

Метод Описание
ParseRequest ( HttpRequest request ) : WopiRequest

Called at the beginning of a WOPI request to parse the request and determine the request type

ProcessWopiRequest ( this context ) : Task

Processes a WOPI request using the HttpContext of the APIController

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

Метод Описание
CheckFileInfo ( this context, FileModel file ) : HttpResponseMessage

Processes a CheckFileInfo request

For full documentation on CheckFileInfo, see https://wopi.readthedocs.org/projects/wopirest/en/latest/files/CheckFileInfo.html

GetFile ( this context, FileModel file ) : Task

Processes a GetFile request

For full documentation on GetFile, see https://wopi.readthedocs.org/projects/wopirest/en/latest/files/GetFile.html

GetLock ( this context, FileModel file ) : Task

Processes a GetLock request

For full documentation on GetLock, see https://wopi.readthedocs.org/projects/wopirest/en/latest/files/GetLock.html

Lock ( this context, FileModel file ) : Task

Processes a Lock request

For full documentation on Lock, see https://wopi.readthedocs.org/projects/wopirest/en/latest/files/Lock.html

PutFile ( this context, FileModel file ) : Task

Processes a PutFile request

For full documentation on PutFile, see https://wopi.readthedocs.org/projects/wopirest/en/latest/files/PutFile.html

PutRelativeFile ( this context, DetailedFileModel file, List actions ) : Task

Processes a PutRelativeFile request

For full documentation on PutRelativeFile, see https://wopi.readthedocs.org/projects/wopirest/en/latest/files/PutRelativeFile.html

PutUserInfo ( this context, FileModel file ) : Task

Processes a PutUserInfo request

For full documentation on PutUserInfo, see https://wopi.readthedocs.org/projects/wopirest/en/latest/files/PutUserInfo.html

RefreshLock ( this context, FileModel file ) : Task

Processes a RefreshLock request

For full documentation on RefreshLock, see https://wopi.readthedocs.org/projects/wopirest/en/latest/files/RefreshLock.html

RenameFile ( this context, FileModel file ) : Task

Processes a RenameFile request

For full documentation on RenameFile, see https://wopi.readthedocs.org/projects/wopirest/en/latest/files/RenameFile.html

Unlock ( this context, FileModel file ) : Task

Processes a Unlock request

For full documentation on Unlock, see https://wopi.readthedocs.org/projects/wopirest/en/latest/files/Unlock.html

UnlockAndRelock ( this context, FileModel file ) : Task

Processes a UnlockAndRelock request

For full documentation on UnlockAndRelock, see https://wopi.readthedocs.org/projects/wopirest/en/latest/files/UnlockAndRelock.html

returnLockMismatch ( this context, string existingLock = null, string reason = null ) : HttpResponseMessage

Handles mismatch responses on WOPI requests

returnStatus ( HttpStatusCode code, string description ) : HttpResponseMessage

Forms the HttpResponseMessage for the WOPI request

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

ParseRequest() публичный статический Метод

Called at the beginning of a WOPI request to parse the request and determine the request type
public static ParseRequest ( HttpRequest request ) : WopiRequest
request HttpRequest
Результат com.microsoft.dx.officewopi.Models.Wopi.WopiRequest

ProcessWopiRequest() публичный статический Метод

Processes a WOPI request using the HttpContext of the APIController
public static ProcessWopiRequest ( this context ) : Task
context this
Результат Task