C# Class JDP.Transformation.HttpCommands.RemoteOperation

显示文件 Open project: OfficeDev/PnP-Transformation

Public Properties

Property Type Description
PostParameters string>.Dictionary

Public Methods

Method Description
AnalyzeRequestResponse ( string page ) : void

For optinal processing of the page in the inherited class

Execute ( ) : void
RemoteOperation ( string targetUrl, AuthenticationType authType, string user, string password, string domain = "" ) : System
SetPostVariables ( ) : void

To be implemented based on usage scenario

Protected Methods

Method Description
GetRequest ( ) : string

Handles the initial request of the page using given identity

MakePostRequest ( string webPage ) : string

Responsible of accessing the page and submitting the post. Generic handler for the post access

Private Methods

Method Description
GetUpdatedFormDigest ( string siteUrl ) : string

Used to get updated form digest for the operation. Required for most of the operations in on-prem or with Office365-D

ModifyRequestBasedOnAuthPattern ( HttpWebRequest request ) : void

Used to modify the HTTP request based on authentication type

Method Details

AnalyzeRequestResponse() public method

For optinal processing of the page in the inherited class
public AnalyzeRequestResponse ( string page ) : void
page string
return void

Execute() public method

public Execute ( ) : void
return void

GetRequest() protected method

Handles the initial request of the page using given identity
protected GetRequest ( ) : string
return string

MakePostRequest() protected method

Responsible of accessing the page and submitting the post. Generic handler for the post access
protected MakePostRequest ( string webPage ) : string
webPage string
return string

RemoteOperation() public method

public RemoteOperation ( string targetUrl, AuthenticationType authType, string user, string password, string domain = "" ) : System
targetUrl string
authType AuthenticationType
user string
password string
domain string
return System

SetPostVariables() public abstract method

To be implemented based on usage scenario
public abstract SetPostVariables ( ) : void
return void

Property Details

PostParameters public_oe property

public Dictionary PostParameters
return string>.Dictionary