IInstanceManagerService
Assembly: ZennoLab.InterfacesLibrary
Full name: ZennoLab.InterfacesLibrary.ZennoPoster.IInstanceManagerService
Wcf service contract for working with instances
Methods
GetAllInstances
Method
Get array of all active instances
Returns: array of the instances
GetNewInstance
Method
Get the instance
Parameters
| Параметр | Описание |
|---|---|
url | Address of the host pipe for instance (127.0.0.1) |
port | Port of instance |
address | Mode of instance |
browserType | Type of browser |
browserArgs | Command line arguments for starting browser |
ShowInstance
Method
Show the instance
Parameters
| Параметр | Описание |
|---|---|
url | Address of the host pipe for instance (127.0.0.1) |
port | Port of instance |
address | Mode of instance |
HideInstance
Method
Hide the instance
Parameters
| Параметр | Описание |
|---|---|
url | Address of the host pipe for instance (127.0.0.1) |
port | Port of instance |
address | Mode of instance |
ReleaseInstance
Method
Release the instance
Parameters
| Параметр | Описание |
|---|---|
url | Address of the host pipe for instance (127.0.0.1) |
port | Port of instance |
address | Mode of instance |
CaptchaSpecialRecognition
Method
Captcha recognition
Parameters
| Параметр | Описание |
|---|---|
dllName | The path to the library recognizers captchas |
instance | Instance object |
asyncRecognize | Async method |
Returns: Recognition result or id of async task
CaptchaRecognition
Method
Captcha recognition
Parameters
| Параметр | Описание |
|---|---|
dllName | The path to the library recognizers captchas |
captcha | Captcha |
parameters | Parameters |
asyncRecognize | Async method |
Returns: Recognition result or id of async task
CaptchaRecognition
Method
Captcha recognition
Parameters
| Параметр | Описание |
|---|---|
dllName | The path to the library recognizers captchas |
captcha | Captcha |
parameters | Parameters |
asyncRecognize | Async method |
confidence | Answer confidence |
Returns: Recognition result or id of async task
CaptchaRecognitionMulti
Method
Captcha recognition
Parameters
| Параметр | Описание |
|---|---|
dllName | The path to the library recognizers captchas |
captchas64Str | Captchas |
parameters | Parameters |
asyncRecognize | Async method |
Returns: Recognition result or id of async task
WaitCaptchaRecognition
Method
Wait captcha recognition
Parameters
| Параметр | Описание |
|---|---|
id | The id of async task, which was returned by captcha recognition method |
Returns: Recognition result
ContextRecognition
Method
Context recognition
Parameters
| Параметр | Описание |
|---|---|
text | The text for recognition |
themesType | The subject type. It can be: general or detailed |
maxThemes | The maximum count of the themes |
relevance | The minimun relevance for the themes |
Returns: The string which contains the all suitable themes written via separator
MailConfirm
Method
Confirmation email
Parameters
| Параметр | Описание |
|---|---|
timeoutSec | Request timed out. Three timeout written through ”;“ |
login | Login |
pass | Password |
server | Mail server |
port | Port |
useSSL | Use SSL |
useHTML | Use HTML |
useIMAP | Use IMAP |
removeMessages | Delete messages |
identityRegExp | Regular expression to identify the message |
parserRegExp | Regular expression to parse the message |
machNum | Match number |
throwsException | True if need to throw exceptions; otherwise and default, false. |
imapFolderNames | An array of names of imap folders. |
proxyString | The string of rpoxy |
messageCountForLoad | Maximum number of messages for loading |
Returns: Result of confirmation email
ValidateEmail
Method
Validate email
Parameters
| Параметр | Описание |
|---|---|
login | Login |
pass | Password |
server | Mail server |
port | Port |
useSSL | Use SSL |
useIMAP | Use IMAP |
proxyString | Proxy string |
Returns: Result of confirmation email
SendTaskToDownloadMails
Method
download all emails
Parameters
| Параметр | Описание |
|---|---|
login | |
pass | |
server | |
port | |
useSSL | |
protocol | |
lastHours | |
maxCount | |
deleteMessages | |
proxyString |
GetMailTaskStatus
Method
checks the email task status
Parameters
| Параметр | Описание |
|---|---|
taskId | task id |
GetMailTaskError
Method
Get the email task last error
Parameters
| Параметр | Описание |
|---|---|
taskId | task id |
GetDownloadedEmails
Method
recieves an array of emails of completed task
Parameters
| Параметр | Описание |
|---|---|
taskId | task id |
Returns: tuple.Item1 - sibject, tuple.Item2 - from, tuple.Item3 - html message, tuple.Item4 - text message
GetProxy
Method
Get a proxy with removal
Parameters
| Параметр | Описание |
|---|---|
filterName | Filter for proxies |
canonical | Set “true” to get canonical format of address |
Returns: Proxy
GetProxyWithOutDelete
Method
Get a proxy without removal
Parameters
| Параметр | Описание |
|---|---|
filterName | Filter for proxies |
canonical | Set “true” to get canonical format of address |
Returns: Proxy
FtpDownload
Method
Download from the url by FTP
Parameters
| Параметр | Описание |
|---|---|
host | Ftp server adress |
port | Ftp server port |
protocol | Protocol (FTP, sFTP, FTPs) |
login | Login |
pass | Password |
proxy | Proxy |
name | Path to file on server |
localPath | Path to save |
activeMode |
FtpUploadFile
Method
Upload to the url by FTP
Parameters
| Параметр | Описание |
|---|---|
host | Ftp server adress |
port | Ftp server port |
protocol | Protocol (FTP, sFTP, FTPs) |
login | Login |
pass | Password |
proxy | Proxy |
serverPath | Path to save on server |
localPath | Path to file |
activeMode |
FtpUploadDirectory
Method
Upload to the url by FTP
Parameters
| Параметр | Описание |
|---|---|
host | Ftp server adress |
port | Ftp server port |
protocol | Protocol (FTP, sFTP, FTPs) |
login | Login |
pass | Password |
proxy | Proxy |
serverPath | Path to save on server |
localPath | Path to directory |
recursive | Recursive upload |
uncludeRootName | Create the root directory on ftp server |
activeMode |
FtpDeleteFile
Method
Remove the file
Parameters
| Параметр | Описание |
|---|---|
host | Ftp server adress |
port | Ftp server port |
protocol | Protocol (FTP, sFTP, FTPs) |
login | Login |
pass | Password |
proxy | Proxy |
name | Path to file on server |
activeMode |
FtpChmode
Method
Remove the file
Parameters
| Параметр | Описание |
|---|---|
host | Ftp server adress |
port | Ftp server port |
protocol | Protocol (FTP, sFTP, FTPs) |
login | Login |
pass | Password |
proxy | Proxy |
name | Path to the item on server |
mode | Mode of file |
activeMode |
FtpDeleteDirectory
Method
Remove the directory
Parameters
| Параметр | Описание |
|---|---|
host | Ftp server adress |
port | Ftp server port |
protocol | Protocol (FTP, sFTP, FTPs) |
login | Login |
pass | Password |
proxy | Proxy |
name | Path to directory on server |
activeMode |
FtpCreateDirectory
Method
Create the directory.
Parameters
| Параметр | Описание |
|---|---|
host | Ftp server adress |
port | Ftp server port |
protocol | Protocol (FTP, sFTP, FTPs) |
login | Login |
pass | Password |
proxy | Proxy |
name | Path to directory on server |
activeMode |
FtpGetList
Method
Get files list
Parameters
| Параметр | Описание |
|---|---|
host | Ftp server adress |
port | Ftp server port |
protocol | Protocol (FTP, sFTP, FTPs) |
login | Login |
pass | Password |
proxy | Proxy |
directoryName | Path to directory on server |
recursive | Use recursion |
includeDirectory | Include directories |
activeMode |
HttpGet
Method
Execute http get request
Returns: result of the requset
HttpHead
Method
Execute http head request
Returns: result of the requset
HttpOptions
Method
Execute http options request
Returns: result of the requset
HttpTrace
Method
Execute http trace request
Returns: result of the requset
HttpGetBytes
Method
Execute http get request
Returns: result byte array of the requset
HttpHeadBytes
Method
Execute http head request
Returns: result byte array of the requset
HttpOptionsBytes
Method
Execute http options request
Returns: result byte array of the requset
HttpTraceBytes
Method
Execute http trace request
Returns: result byte array of the requset
HttpDelete
Method
Execute http post request
Returns: result of the requset
HttpDelete
Method
Execute http post request
Returns: result of the requset
HttpPost
Method
Execute http post request
Returns: result of the requset
HttpPost
Method
Execute http post request
Returns: result of the requset
HttpPut
Method
Execute http put request
Returns: result of the requset
HttpPut
Method
Execute http put request
Returns: result of the requset
HttpPatch
Method
Execute http put request
Returns: result of the requset
HttpPatch
Method
Execute http put request
Returns: result of the requset
HttpDeleteBytes
Method
Execute http post request
Returns: result byte array of the requset
HttpDeleteBytes
Method
Execute http post request
Returns: result byte array of the requset
HttpPostBytes
Method
Execute http post request
Returns: result byte array of the requset
HttpPostBytes
Method
Returns: result byte array of the requset
HttpPutBytes
Method
Execute http put request
Returns: result byte array of the requset
HttpPatchBytes
Method
Execute http put request
Returns: result byte array of the requset
DbExecuteNonQuery
Method
Executes a SQL statement against the connection and returns the number of rows affected
Parameters
| Параметр | Описание |
|---|---|
query | SQL query |
param | Query parameters |
provider | Provider type |
connectionString | Connection string |
throwExceptions | Whether to throw exceptions on fail (true), or not (false) |
Returns: The number of rows affected
DbExecuteScalar
Method
Executes the query, and returns the first column of the first row in the result set returned by the query.Additional columns or rows are ignored.
Parameters
| Параметр | Описание |
|---|---|
query | SQL query |
param | Query parameters |
provider | Provider type |
connectionString | Connection string |
throwExceptions | Whether to throw exceptions on fail (true), or not (false) |
Returns: The first column of the first row in the result set or empty string
DbExecuteQuery
Method
Execute SQL query and fill table
Parameters
| Параметр | Описание |
|---|---|
query | SQL query |
param | Query parameters |
provider | Provider type |
connectionString | Connection string |
table | Table for result data |
throwExceptions | Whether to throw exceptions on fail (true), or not (false) |
Returns: The number of rows affected
DbExecuteQuery
Method
Execute SQL query and fill list
Parameters
| Параметр | Описание |
|---|---|
query | SQL query |
param | Query parameters |
provider | Provider type |
connectionString | Connection string |
list | List for result data |
separator | Field separator |
throwExceptions | Whether to throw exceptions on fail (true), or not (false) |
Returns: The number of rows affected
DbExecuteQuery
Method
Execute SQL query and return result as string
Parameters
| Параметр | Описание |
|---|---|
query | SQL query |
param | Query parameters |
provider | Provider type |
connectionString | Connection string |
fieldSeparator | Field separator |
rowSeparator | Row separator. If null - Environment.NewLine |
throwExceptions | Whether to throw exceptions on fail (true), or not (false) |
Returns: Result string
ParseByXpath
Method
Parse html document by xpath
Parameters
| Параметр | Описание |
|---|---|
source | Html document |
xpath | XPath |
attribute | The attribute to take |
ParseByCssSelector
Method
Parse html document by css-selector
Parameters
| Параметр | Описание |
|---|---|
source | Html document |
cssSelector | CSS-selector |
attribute | The attribute to take |