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

ПараметрОписание
urlAddress of the host pipe for instance (127.0.0.1)
portPort of instance
addressMode of instance
browserTypeType of browser
browserArgsCommand line arguments for starting browser

ShowInstance

Method

Show the instance

Parameters

ПараметрОписание
urlAddress of the host pipe for instance (127.0.0.1)
portPort of instance
addressMode of instance

HideInstance

Method

Hide the instance

Parameters

ПараметрОписание
urlAddress of the host pipe for instance (127.0.0.1)
portPort of instance
addressMode of instance

ReleaseInstance

Method

Release the instance

Parameters

ПараметрОписание
urlAddress of the host pipe for instance (127.0.0.1)
portPort of instance
addressMode of instance

CaptchaSpecialRecognition

Method

Captcha recognition

Parameters

ПараметрОписание
dllNameThe path to the library recognizers captchas
instanceInstance object
asyncRecognizeAsync method

Returns: Recognition result or id of async task

CaptchaRecognition

Method

Captcha recognition

Parameters

ПараметрОписание
dllNameThe path to the library recognizers captchas
captchaCaptcha
parametersParameters
asyncRecognizeAsync method

Returns: Recognition result or id of async task

CaptchaRecognition

Method

Captcha recognition

Parameters

ПараметрОписание
dllNameThe path to the library recognizers captchas
captchaCaptcha
parametersParameters
asyncRecognizeAsync method
confidenceAnswer confidence

Returns: Recognition result or id of async task

CaptchaRecognitionMulti

Method

Captcha recognition

Parameters

ПараметрОписание
dllNameThe path to the library recognizers captchas
captchas64StrCaptchas
parametersParameters
asyncRecognizeAsync method

Returns: Recognition result or id of async task

WaitCaptchaRecognition

Method

Wait captcha recognition

Parameters

ПараметрОписание
idThe id of async task, which was returned by captcha recognition method

Returns: Recognition result

ContextRecognition

Method

Context recognition

Parameters

ПараметрОписание
textThe text for recognition
themesTypeThe subject type. It can be: general or detailed
maxThemesThe maximum count of the themes
relevanceThe minimun relevance for the themes

Returns: The string which contains the all suitable themes written via separator

MailConfirm

Method

Confirmation email

Parameters

ПараметрОписание
timeoutSecRequest timed out. Three timeout written through ”;“
loginLogin
passPassword
serverMail server
portPort
useSSLUse SSL
useHTMLUse HTML
useIMAPUse IMAP
removeMessagesDelete messages
identityRegExpRegular expression to identify the message
parserRegExpRegular expression to parse the message
machNumMatch number
throwsExceptionTrue if need to throw exceptions; otherwise and default, false.
imapFolderNamesAn array of names of imap folders.
proxyStringThe string of rpoxy
messageCountForLoadMaximum number of messages for loading

Returns: Result of confirmation email

ValidateEmail

Method

Validate email

Parameters

ПараметрОписание
loginLogin
passPassword
serverMail server
portPort
useSSLUse SSL
useIMAPUse IMAP
proxyStringProxy 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

ПараметрОписание
taskIdtask id

GetMailTaskError

Method

Get the email task last error

Parameters

ПараметрОписание
taskIdtask id

GetDownloadedEmails

Method

recieves an array of emails of completed task

Parameters

ПараметрОписание
taskIdtask id

Returns: tuple.Item1 - sibject, tuple.Item2 - from, tuple.Item3 - html message, tuple.Item4 - text message

GetProxy

Method

Get a proxy with removal

Parameters

ПараметрОписание
filterNameFilter for proxies
canonicalSet “true” to get canonical format of address

Returns: Proxy

GetProxyWithOutDelete

Method

Get a proxy without removal

Parameters

ПараметрОписание
filterNameFilter for proxies
canonicalSet “true” to get canonical format of address

Returns: Proxy

FtpDownload

Method

Download from the url by FTP

Parameters

ПараметрОписание
hostFtp server adress
portFtp server port
protocolProtocol (FTP, sFTP, FTPs)
loginLogin
passPassword
proxyProxy
namePath to file on server
localPathPath to save
activeMode

FtpUploadFile

Method

Upload to the url by FTP

Parameters

ПараметрОписание
hostFtp server adress
portFtp server port
protocolProtocol (FTP, sFTP, FTPs)
loginLogin
passPassword
proxyProxy
serverPathPath to save on server
localPathPath to file
activeMode

FtpUploadDirectory

Method

Upload to the url by FTP

Parameters

ПараметрОписание
hostFtp server adress
portFtp server port
protocolProtocol (FTP, sFTP, FTPs)
loginLogin
passPassword
proxyProxy
serverPathPath to save on server
localPathPath to directory
recursiveRecursive upload
uncludeRootNameCreate the root directory on ftp server
activeMode

FtpDeleteFile

Method

Remove the file

Parameters

ПараметрОписание
hostFtp server adress
portFtp server port
protocolProtocol (FTP, sFTP, FTPs)
loginLogin
passPassword
proxyProxy
namePath to file on server
activeMode

FtpChmode

Method

Remove the file

Parameters

ПараметрОписание
hostFtp server adress
portFtp server port
protocolProtocol (FTP, sFTP, FTPs)
loginLogin
passPassword
proxyProxy
namePath to the item on server
modeMode of file
activeMode

FtpDeleteDirectory

Method

Remove the directory

Parameters

ПараметрОписание
hostFtp server adress
portFtp server port
protocolProtocol (FTP, sFTP, FTPs)
loginLogin
passPassword
proxyProxy
namePath to directory on server
activeMode

FtpCreateDirectory

Method

Create the directory.

Parameters

ПараметрОписание
hostFtp server adress
portFtp server port
protocolProtocol (FTP, sFTP, FTPs)
loginLogin
passPassword
proxyProxy
namePath to directory on server
activeMode

FtpGetList

Method

Get files list

Parameters

ПараметрОписание
hostFtp server adress
portFtp server port
protocolProtocol (FTP, sFTP, FTPs)
loginLogin
passPassword
proxyProxy
directoryNamePath to directory on server
recursiveUse recursion
includeDirectoryInclude 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

ПараметрОписание
querySQL query
paramQuery parameters
providerProvider type
connectionStringConnection string
throwExceptionsWhether 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

ПараметрОписание
querySQL query
paramQuery parameters
providerProvider type
connectionStringConnection string
throwExceptionsWhether 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

ПараметрОписание
querySQL query
paramQuery parameters
providerProvider type
connectionStringConnection string
tableTable for result data
throwExceptionsWhether to throw exceptions on fail (true), or not (false)

Returns: The number of rows affected

DbExecuteQuery

Method

Execute SQL query and fill list

Parameters

ПараметрОписание
querySQL query
paramQuery parameters
providerProvider type
connectionStringConnection string
listList for result data
separatorField separator
throwExceptionsWhether 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

ПараметрОписание
querySQL query
paramQuery parameters
providerProvider type
connectionStringConnection string
fieldSeparatorField separator
rowSeparatorRow separator. If null - Environment.NewLine
throwExceptionsWhether to throw exceptions on fail (true), or not (false)

Returns: Result string

ParseByXpath

Method

Parse html document by xpath

Parameters

ПараметрОписание
sourceHtml document
xpathXPath
attributeThe attribute to take

ParseByCssSelector

Method

Parse html document by css-selector

Parameters

ПараметрОписание
sourceHtml document
cssSelectorCSS-selector
attributeThe attribute to take