C# Class Microsoft.Protocols.TestSuites.MS_WOPI.TokenAndRequestUrlHelper

This class is used to get the WOPI resource URL
Inheritance: HelperBase
Afficher le fichier Open project: OfficeDev/Interop-TestSuites Class Usage Examples

Méthodes publiques

Méthode Description
GetSubResourceUrl ( string wopiRootResourceUrl, WOPISubResourceUrlType subResourceUrlType ) : string

A method is used to get folder children's level URL.

GetTokenValueFromWOPIResourceUrl ( string wopiResourceUrl ) : string

A method is used to get token value.

InitializeHelper ( IMS_WOPIManagedCodeSUTControlAdapter managedCodeSutConrollerAdapterInstance, ITestSite testSiteInstance ) : void

A method is used to initialize the TokenAndRequestUrlHelper helper.

Méthodes protégées

Méthode Description
GetWOPISrcAndTokenValueFromWOPIResourceUrl ( string wopiResourceUrl ) : string>.Dictionary

A method is used to get the WOPIsrc value and the token value.

Private Methods

Méthode Description
TokenAndRequestUrlHelper ( ) : System

Prevents a default instance of the TokenAndRequestUrlHelper class from being created

Method Details

GetSubResourceUrl() public static méthode

A method is used to get folder children's level URL.
public static GetSubResourceUrl ( string wopiRootResourceUrl, WOPISubResourceUrlType subResourceUrlType ) : string
wopiRootResourceUrl string A parameter represents the WOPI resource URL for the folder level.
subResourceUrlType WOPISubResourceUrlType A parameter represents the WOPI sub resource URL for the folder level.
Résultat string

GetTokenValueFromWOPIResourceUrl() public static méthode

A method is used to get token value.
public static GetTokenValueFromWOPIResourceUrl ( string wopiResourceUrl ) : string
wopiResourceUrl string A parameter represents the WOPI resource URL, which is contain token information.
Résultat string

GetWOPISrcAndTokenValueFromWOPIResourceUrl() protected static méthode

A method is used to get the WOPIsrc value and the token value.
protected static GetWOPISrcAndTokenValueFromWOPIResourceUrl ( string wopiResourceUrl ) : string>.Dictionary
wopiResourceUrl string A parameter represents the WOPI resource URL
Résultat string>.Dictionary

InitializeHelper() public static méthode

A method is used to initialize the TokenAndRequestUrlHelper helper.
public static InitializeHelper ( IMS_WOPIManagedCodeSUTControlAdapter managedCodeSutConrollerAdapterInstance, ITestSite testSiteInstance ) : void
managedCodeSutConrollerAdapterInstance IMS_WOPIManagedCodeSUTControlAdapter A parameter represents the IMS_WOPISUTManageCodeControlAdapter type instance, it is used to get WOPI root resource URL.
testSiteInstance ITestSite A parameter represents an ITestSite instance which is used to get test suite context.
Résultat void