C# Класс TableauServerSignedInRequestBase, TabMigrate

Abstract class for making requests AFTER having logged into the server
Наследование: TableauServerRequestBase
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
_onlineSession TableauServerSignIn,

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

Метод Описание
TableauServerSignedInRequestBase ( TableauServerSignIn, login ) : System

Constructor

Защищенные методы

Метод Описание
CreateAndSendMimeLoggedInRequest ( string url, string protocol, MimeWriterBase, mimeToSend, Nullable requestTimeout = null ) : WebRequest

Creates a web request with a MIME payload and send it to server

CreateLoggedInWebClient ( ) : WebClient

Web client class used for downloads from Tableau Server

CreateLoggedInWebRequest ( string url, string protocol = "GET", Nullable requestTimeout = null ) : WebRequest

Creates a web request and appends the user credential tokens necessary

DownloadFile ( string urlDownload, string downloadToDirectory, string baseFilename, DownloadPayloadTypeHelper, downloadTypeMapper ) : string

Download a file

GetWebReponseLogErrors ( WebRequest webRequest, string description ) : WebResponse

Get the web response; log any error codes that occur and rethrow the exception. This allows us to get error log data with detailed information

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

Метод Описание
AppendLoggedInHeadersForRequest ( WebHeaderCollection webHeaders ) : void

Adds header information that authenticates the request to Tableau Online

AttemptToLogWebException ( WebException webException, string description, TaskStatusLogs, onlineStatusLog ) : void

Attempt to log any detailed information we find about the failed web request

DownloadFile_inner ( string urlDownload, string downloadToDirectory, string baseFilename, DownloadPayloadTypeHelper, downloadTypeMapper ) : string

Downloads a file

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

CreateAndSendMimeLoggedInRequest() защищенный Метод

Creates a web request with a MIME payload and send it to server
protected CreateAndSendMimeLoggedInRequest ( string url, string protocol, MimeWriterBase, mimeToSend, Nullable requestTimeout = null ) : WebRequest
url string
protocol string e.g. "PUT" "POST"
mimeToSend MimeWriterBase, Mime data we are goign to send
requestTimeout Nullable
Результат WebRequest

CreateLoggedInWebClient() защищенный Метод

Web client class used for downloads from Tableau Server
protected CreateLoggedInWebClient ( ) : WebClient
Результат WebClient

CreateLoggedInWebRequest() защищенный Метод

Creates a web request and appends the user credential tokens necessary
protected CreateLoggedInWebRequest ( string url, string protocol = "GET", Nullable requestTimeout = null ) : WebRequest
url string
protocol string
requestTimeout Nullable Useful for specifying timeouts for operations that can take a long time
Результат WebRequest

DownloadFile() защищенный Метод

Download a file
protected DownloadFile ( string urlDownload, string downloadToDirectory, string baseFilename, DownloadPayloadTypeHelper, downloadTypeMapper ) : string
urlDownload string
downloadToDirectory string
baseFilename string
downloadTypeMapper DownloadPayloadTypeHelper,
Результат string

GetWebReponseLogErrors() защищенный Метод

Get the web response; log any error codes that occur and rethrow the exception. This allows us to get error log data with detailed information
protected GetWebReponseLogErrors ( WebRequest webRequest, string description ) : WebResponse
webRequest WebRequest
description string
Результат WebResponse

TableauServerSignedInRequestBase() публичный Метод

Constructor
public TableauServerSignedInRequestBase ( TableauServerSignIn, login ) : System
login TableauServerSignIn,
Результат System

Описание свойств

_onlineSession защищенное свойство

protected TableauServerSignIn, _onlineSession
Результат TableauServerSignIn,