IInstanceManagerService
Assembly: ZennoLab.InterfacesLibrary
Full name: ZennoLab.InterfacesLibrary.ZennoPoster.IInstanceManagerService
Kind: interface
Wcf service contract for working with instances
Methods
GetAllInstances
Method
Int32[] GetAllInstances()
Get array of all active instances
Returns: array of the instances
GetNewInstance
Method
void GetNewInstance(String& url, Int32& port, String& address, BrowserType browserType, string browserArgs)
Parameters
| Type | Name | Description |
|---|---|---|
String& | url | |
Int32& | port | |
String& | address | |
BrowserType | browserType | |
string | browserArgs |
ShowInstance
Method
void ShowInstance(string url, int port, string address)
Show the instance
Parameters
| Type | Name | Description |
|---|---|---|
string | url | Address of the host pipe for instance (127.0.0.1) |
int | port | Port of instance |
string | address | Mode of instance |
HideInstance
Method
void HideInstance(string url, int port, string address)
Hide the instance
Parameters
| Type | Name | Description |
|---|---|---|
string | url | Address of the host pipe for instance (127.0.0.1) |
int | port | Port of instance |
string | address | Mode of instance |
ReleaseInstance
Method
void ReleaseInstance(string url, int port, string address)
Release the instance
Parameters
| Type | Name | Description |
|---|---|---|
string | url | Address of the host pipe for instance (127.0.0.1) |
int | port | Port of instance |
string | address | Mode of instance |
CaptchaSpecialRecognition
Method
string CaptchaSpecialRecognition(string dllName, object instance, bool asyncRecognize)
Captcha recognition
Parameters
| Type | Name | Description |
|---|---|---|
string | dllName | The path to the library recognizers captchas |
object | instance | Instance object |
bool | asyncRecognize | Async method |
Returns: Recognition result or id of async task
CaptchaRecognition
Method
string CaptchaRecognition(string dllName, string captcha, string parameters, bool asyncRecognize)
Captcha recognition
Parameters
| Type | Name | Description |
|---|---|---|
string | dllName | The path to the library recognizers captchas |
string | captcha | Captcha |
string | parameters | Parameters |
bool | asyncRecognize | Async method |
Returns: Recognition result or id of async task
CaptchaRecognition
Method
string CaptchaRecognition(string dllName, string captcha, string parameters, bool asyncRecognize, String& confidence)
Parameters
| Type | Name | Description |
|---|---|---|
string | dllName | |
string | captcha | |
string | parameters | |
bool | asyncRecognize | |
String& | confidence |
CaptchaRecognitionMulti
Method
string CaptchaRecognitionMulti(string dllName, String[] captchas64Str, string parameters, bool asyncRecognize)
Captcha recognition
Parameters
| Type | Name | Description |
|---|---|---|
string | dllName | The path to the library recognizers captchas |
String[] | captchas64Str | Captchas |
string | parameters | Parameters |
bool | asyncRecognize | Async method |
Returns: Recognition result or id of async task
WaitCaptchaRecognition
Method
string WaitCaptchaRecognition(string id)
Wait captcha recognition
Parameters
| Type | Name | Description |
|---|---|---|
string | id | The id of async task, which was returned by captcha recognition method |
Returns: Recognition result
ContextRecognition
Method
string ContextRecognition(string text, string themesType, int maxThemes, int relevance)
Context recognition
Parameters
| Type | Name | Description |
|---|---|---|
string | text | The text for recognition |
string | themesType | The subject type. It can be: general or detailed |
int | maxThemes | The maximum count of the themes |
int | relevance | The minimun relevance for the themes |
Returns: The string which contains the all suitable themes written via separator
MailConfirm
Method
string MailConfirm(string timeoutSec, string login, string pass, string server, int port, bool useSSL, bool useHTML, bool useIMAP, bool removeMessages, string identityRegExp, string parserRegExp, int machNum, bool throwsException, String[] imapFolderNames, string proxyString, int messageCountForLoad)
Confirmation email
Parameters
| Type | Name | Description |
|---|---|---|
string | timeoutSec | Request timed out. Three timeout written through ”;“ |
string | login | Login |
string | pass | Password |
string | server | Mail server |
int | port | Port |
bool | useSSL | Use SSL |
bool | useHTML | Use HTML |
bool | useIMAP | Use IMAP |
bool | removeMessages | Delete messages |
string | identityRegExp | Regular expression to identify the message |
string | parserRegExp | Regular expression to parse the message |
int | machNum | Match number |
bool | throwsException | True if need to throw exceptions; otherwise and default, false. |
String[] | imapFolderNames | An array of names of imap folders. |
string | proxyString | The string of rpoxy |
int | messageCountForLoad | Maximum number of messages for loading |
Returns: Result of confirmation email
ValidateEmail
Method
string ValidateEmail(string login, string pass, string server, int port, bool useSSL, bool useIMAP, string proxyString)
Validate email
Parameters
| Type | Name | Description |
|---|---|---|
string | login | Login |
string | pass | Password |
string | server | Mail server |
int | port | Port |
bool | useSSL | Use SSL |
bool | useIMAP | Use IMAP |
string | proxyString | Proxy string |
Returns: Result of confirmation email
SendTaskToDownloadMails
Method
string SendTaskToDownloadMails(string login, string pass, string server, int port, bool useSSL, EmailProtocol protocol, int lastHours, int maxCount, bool deleteMessages, string proxyString)
download all emails
Parameters
| Type | Name | Description |
|---|---|---|
string | login | |
string | pass | |
string | server | |
int | port | |
bool | useSSL | |
EmailProtocol | protocol | |
int | lastHours | |
int | maxCount | |
bool | deleteMessages | |
string | proxyString |
GetMailTaskStatus
Method
EmailWorkStatus GetMailTaskStatus(string taskId)
checks the email task status
Parameters
| Type | Name | Description |
|---|---|---|
string | taskId | task id |
GetMailTaskError
Method
string GetMailTaskError(string taskId)
Get the email task last error
Parameters
| Type | Name | Description |
|---|---|---|
string | taskId | task id |
GetDownloadedEmails
Method
Tuple`4[] GetDownloadedEmails(string taskId)
recieves an array of emails of completed task
Parameters
| Type | Name | Description |
|---|---|---|
string | taskId | task id |
Returns: tuple.Item1 - sibject, tuple.Item2 - from, tuple.Item3 - html message, tuple.Item4 - text message
GetProxy
Method
string GetProxy(string filterName, bool canonical)
Get a proxy with removal
Parameters
| Type | Name | Description |
|---|---|---|
string | filterName | Filter for proxies |
bool | canonical | Set “true” to get canonical format of address |
Returns: Proxy
GetProxyWithOutDelete
Method
string GetProxyWithOutDelete(string filterName, bool canonical)
Get a proxy without removal
Parameters
| Type | Name | Description |
|---|---|---|
string | filterName | Filter for proxies |
bool | canonical | Set “true” to get canonical format of address |
Returns: Proxy
FtpDownload
Method
void FtpDownload(string host, int port, string protocol, string login, string pass, string proxy, string name, string localPath, bool activeMode)
Download from the url by FTP
Parameters
| Type | Name | Description |
|---|---|---|
string | host | Ftp server adress |
int | port | Ftp server port |
string | protocol | Protocol (FTP, sFTP, FTPs) |
string | login | Login |
string | pass | Password |
string | proxy | Proxy |
string | name | Path to file on server |
string | localPath | Path to save |
bool | activeMode |
FtpUploadFile
Method
void FtpUploadFile(string host, int port, string protocol, string login, string pass, string proxy, string serverPath, string localPath, bool activeMode)
Upload to the url by FTP
Parameters
| Type | Name | Description |
|---|---|---|
string | host | Ftp server adress |
int | port | Ftp server port |
string | protocol | Protocol (FTP, sFTP, FTPs) |
string | login | Login |
string | pass | Password |
string | proxy | Proxy |
string | serverPath | Path to save on server |
string | localPath | Path to file |
bool | activeMode |
FtpUploadDirectory
Method
void FtpUploadDirectory(string host, int port, string protocol, string login, string pass, string proxy, string serverPath, string localPath, bool recursive, bool uncludeRootName, bool activeMode)
Upload to the url by FTP
Parameters
| Type | Name | Description |
|---|---|---|
string | host | Ftp server adress |
int | port | Ftp server port |
string | protocol | Protocol (FTP, sFTP, FTPs) |
string | login | Login |
string | pass | Password |
string | proxy | Proxy |
string | serverPath | Path to save on server |
string | localPath | Path to directory |
bool | recursive | Recursive upload |
bool | uncludeRootName | Create the root directory on ftp server |
bool | activeMode |
FtpDeleteFile
Method
void FtpDeleteFile(string host, int port, string protocol, string login, string pass, string proxy, string name, bool activeMode)
Remove the file
Parameters
| Type | Name | Description |
|---|---|---|
string | host | Ftp server adress |
int | port | Ftp server port |
string | protocol | Protocol (FTP, sFTP, FTPs) |
string | login | Login |
string | pass | Password |
string | proxy | Proxy |
string | name | Path to file on server |
bool | activeMode |
FtpChmode
Method
void FtpChmode(string host, int port, string protocol, string login, string pass, string proxy, string name, string mode, bool activeMode)
Remove the file
Parameters
| Type | Name | Description |
|---|---|---|
string | host | Ftp server adress |
int | port | Ftp server port |
string | protocol | Protocol (FTP, sFTP, FTPs) |
string | login | Login |
string | pass | Password |
string | proxy | Proxy |
string | name | Path to the item on server |
string | mode | Mode of file |
bool | activeMode |
FtpDeleteDirectory
Method
void FtpDeleteDirectory(string host, int port, string protocol, string login, string pass, string proxy, string name, bool activeMode)
Remove the directory
Parameters
| Type | Name | Description |
|---|---|---|
string | host | Ftp server adress |
int | port | Ftp server port |
string | protocol | Protocol (FTP, sFTP, FTPs) |
string | login | Login |
string | pass | Password |
string | proxy | Proxy |
string | name | Path to directory on server |
bool | activeMode |
FtpCreateDirectory
Method
void FtpCreateDirectory(string host, int port, string protocol, string login, string pass, string proxy, string name, bool activeMode)
Create the directory.
Parameters
| Type | Name | Description |
|---|---|---|
string | host | Ftp server adress |
int | port | Ftp server port |
string | protocol | Protocol (FTP, sFTP, FTPs) |
string | login | Login |
string | pass | Password |
string | proxy | Proxy |
string | name | Path to directory on server |
bool | activeMode |
FtpGetList
Method
IEnumerable<string> FtpGetList(string host, int port, string protocol, string login, string pass, string proxy, string directoryName, bool recursive, bool includeDirectory, bool activeMode)
Get files list
Parameters
| Type | Name | Description |
|---|---|---|
string | host | Ftp server adress |
int | port | Ftp server port |
string | protocol | Protocol (FTP, sFTP, FTPs) |
string | login | Login |
string | pass | Password |
string | proxy | Proxy |
string | directoryName | Path to directory on server |
bool | recursive | Use recursion |
bool | includeDirectory | Include directories |
bool | activeMode |
HttpGet
Method
string HttpGet(string url, String& error, Byte[]& cookieContainerBytes, string proxy, string encoding, ResponceType respType, int timeout, string cookies, string userAgent, bool useRedirect, int maxRedirectCount, String[] additionalHeaders, string downloadPath, bool useOriginalUrl, bool legacyMultipart, ICookieContainer cookieContainer, bool removeDefaultHeaders)
Parameters
| Type | Name | Description |
|---|---|---|
string | url | |
String& | error | |
Byte[]& | cookieContainerBytes | |
string | proxy | |
string | encoding | |
ResponceType | respType | |
int | timeout | |
string | cookies | |
string | userAgent | |
bool | useRedirect | |
int | maxRedirectCount | |
String[] | additionalHeaders | |
string | downloadPath | |
bool | useOriginalUrl | |
bool | legacyMultipart | |
ICookieContainer | cookieContainer | |
bool | removeDefaultHeaders |
HttpHead
Method
string HttpHead(string url, String& error, Byte[]& cookieContainerBytes, string proxy, string encoding, ResponceType respType, int timeout, string cookies, string userAgent, bool useRedirect, int maxRedirectCount, String[] additionalHeaders, string downloadPath, bool useOriginalUrl, bool legacyMultipart, ICookieContainer cookieContainer, bool removeDefaultHeaders)
Parameters
| Type | Name | Description |
|---|---|---|
string | url | |
String& | error | |
Byte[]& | cookieContainerBytes | |
string | proxy | |
string | encoding | |
ResponceType | respType | |
int | timeout | |
string | cookies | |
string | userAgent | |
bool | useRedirect | |
int | maxRedirectCount | |
String[] | additionalHeaders | |
string | downloadPath | |
bool | useOriginalUrl | |
bool | legacyMultipart | |
ICookieContainer | cookieContainer | |
bool | removeDefaultHeaders |
HttpOptions
Method
string HttpOptions(string url, String& error, Byte[]& cookieContainerBytes, string proxy, string encoding, ResponceType respType, int timeout, string cookies, string userAgent, bool useRedirect, int maxRedirectCount, String[] additionalHeaders, string downloadPath, bool useOriginalUrl, bool legacyMultipart, ICookieContainer cookieContainer, bool removeDefaultHeaders)
Parameters
| Type | Name | Description |
|---|---|---|
string | url | |
String& | error | |
Byte[]& | cookieContainerBytes | |
string | proxy | |
string | encoding | |
ResponceType | respType | |
int | timeout | |
string | cookies | |
string | userAgent | |
bool | useRedirect | |
int | maxRedirectCount | |
String[] | additionalHeaders | |
string | downloadPath | |
bool | useOriginalUrl | |
bool | legacyMultipart | |
ICookieContainer | cookieContainer | |
bool | removeDefaultHeaders |
HttpTrace
Method
string HttpTrace(string url, String& error, Byte[]& cookieContainerBytes, string proxy, string encoding, ResponceType respType, int timeout, string cookies, string userAgent, bool useRedirect, int maxRedirectCount, String[] additionalHeaders, string downloadPath, bool useOriginalUrl, bool legacyMultipart, ICookieContainer cookieContainer, bool removeDefaultHeaders)
Parameters
| Type | Name | Description |
|---|---|---|
string | url | |
String& | error | |
Byte[]& | cookieContainerBytes | |
string | proxy | |
string | encoding | |
ResponceType | respType | |
int | timeout | |
string | cookies | |
string | userAgent | |
bool | useRedirect | |
int | maxRedirectCount | |
String[] | additionalHeaders | |
string | downloadPath | |
bool | useOriginalUrl | |
bool | legacyMultipart | |
ICookieContainer | cookieContainer | |
bool | removeDefaultHeaders |
HttpGetBytes
Method
Byte[] HttpGetBytes(string url, String& error, Byte[]& cookieContainerBytes, string proxy, string encoding, ResponceType respType, int timeout, string cookies, string userAgent, bool useRedirect, int maxRedirectCount, String[] additionalHeaders, bool useOriginalUrl, bool legacyMultipart, ICookieContainer cookieContainer, bool removeDefaultHeaders)
Parameters
| Type | Name | Description |
|---|---|---|
string | url | |
String& | error | |
Byte[]& | cookieContainerBytes | |
string | proxy | |
string | encoding | |
ResponceType | respType | |
int | timeout | |
string | cookies | |
string | userAgent | |
bool | useRedirect | |
int | maxRedirectCount | |
String[] | additionalHeaders | |
bool | useOriginalUrl | |
bool | legacyMultipart | |
ICookieContainer | cookieContainer | |
bool | removeDefaultHeaders |
HttpHeadBytes
Method
Byte[] HttpHeadBytes(string url, String& error, Byte[]& cookieContainerBytes, string proxy, string encoding, ResponceType respType, int timeout, string cookies, string userAgent, bool useRedirect, int maxRedirectCount, String[] additionalHeaders, string downloadPath, bool useOriginalUrl, bool legacyMultipart, ICookieContainer cookieContainer, bool removeDefaultHeaders)
Parameters
| Type | Name | Description |
|---|---|---|
string | url | |
String& | error | |
Byte[]& | cookieContainerBytes | |
string | proxy | |
string | encoding | |
ResponceType | respType | |
int | timeout | |
string | cookies | |
string | userAgent | |
bool | useRedirect | |
int | maxRedirectCount | |
String[] | additionalHeaders | |
string | downloadPath | |
bool | useOriginalUrl | |
bool | legacyMultipart | |
ICookieContainer | cookieContainer | |
bool | removeDefaultHeaders |
HttpOptionsBytes
Method
Byte[] HttpOptionsBytes(string url, String& error, Byte[]& cookieContainerBytes, string proxy, string encoding, ResponceType respType, int timeout, string cookies, string userAgent, bool useRedirect, int maxRedirectCount, String[] additionalHeaders, string downloadPath, bool useOriginalUrl, bool legacyMultipart, ICookieContainer cookieContainer, bool removeDefaultHeaders)
Parameters
| Type | Name | Description |
|---|---|---|
string | url | |
String& | error | |
Byte[]& | cookieContainerBytes | |
string | proxy | |
string | encoding | |
ResponceType | respType | |
int | timeout | |
string | cookies | |
string | userAgent | |
bool | useRedirect | |
int | maxRedirectCount | |
String[] | additionalHeaders | |
string | downloadPath | |
bool | useOriginalUrl | |
bool | legacyMultipart | |
ICookieContainer | cookieContainer | |
bool | removeDefaultHeaders |
HttpTraceBytes
Method
Byte[] HttpTraceBytes(string url, String& error, Byte[]& cookieContainerBytes, string proxy, string encoding, ResponceType respType, int timeout, string cookies, string userAgent, bool useRedirect, int maxRedirectCount, String[] additionalHeaders, string downloadPath, bool useOriginalUrl, bool legacyMultipart, ICookieContainer cookieContainer, bool removeDefaultHeaders)
Parameters
| Type | Name | Description |
|---|---|---|
string | url | |
String& | error | |
Byte[]& | cookieContainerBytes | |
string | proxy | |
string | encoding | |
ResponceType | respType | |
int | timeout | |
string | cookies | |
string | userAgent | |
bool | useRedirect | |
int | maxRedirectCount | |
String[] | additionalHeaders | |
string | downloadPath | |
bool | useOriginalUrl | |
bool | legacyMultipart | |
ICookieContainer | cookieContainer | |
bool | removeDefaultHeaders |
HttpDelete
Method
string HttpDelete(string url, string content, String& error, Byte[]& cookieContainerBytes, string contentPostingType, string proxy, string encoding, ResponceType respType, int timeout, string cookies, string userAgent, bool useRedirect, int maxRedirectCount, String[] additionalHeaders, string downloadPath, bool useOriginalUrl, bool legacyMultipart, ICookieContainer cookieContainer, bool removeDefaultHeaders)
Parameters
| Type | Name | Description |
|---|---|---|
string | url | |
string | content | |
String& | error | |
Byte[]& | cookieContainerBytes | |
string | contentPostingType | |
string | proxy | |
string | encoding | |
ResponceType | respType | |
int | timeout | |
string | cookies | |
string | userAgent | |
bool | useRedirect | |
int | maxRedirectCount | |
String[] | additionalHeaders | |
string | downloadPath | |
bool | useOriginalUrl | |
bool | legacyMultipart | |
ICookieContainer | cookieContainer | |
bool | removeDefaultHeaders |
HttpDelete
Method
string HttpDelete(string url, Byte[] content, String& error, Byte[]& cookieContainerBytes, string contentPostingType, string proxy, string encoding, ResponceType respType, int timeout, string cookies, string userAgent, bool useRedirect, int maxRedirectCount, String[] additionalHeaders, string downloadPath, bool useOriginalUrl, bool legacyMultipart, ICookieContainer cookieContainer, bool removeDefaultHeaders)
Parameters
| Type | Name | Description |
|---|---|---|
string | url | |
Byte[] | content | |
String& | error | |
Byte[]& | cookieContainerBytes | |
string | contentPostingType | |
string | proxy | |
string | encoding | |
ResponceType | respType | |
int | timeout | |
string | cookies | |
string | userAgent | |
bool | useRedirect | |
int | maxRedirectCount | |
String[] | additionalHeaders | |
string | downloadPath | |
bool | useOriginalUrl | |
bool | legacyMultipart | |
ICookieContainer | cookieContainer | |
bool | removeDefaultHeaders |
HttpPost
Method
string HttpPost(string url, string content, String& error, Byte[]& cookieContainerBytes, string contentPostingType, string proxy, string encoding, ResponceType respType, int timeout, string cookies, string userAgent, bool useRedirect, int maxRedirectCount, String[] additionalHeaders, string downloadPath, bool useOriginalUrl, bool legacyMultipart, ICookieContainer cookieContainer, bool removeDefaultHeaders)
Parameters
| Type | Name | Description |
|---|---|---|
string | url | |
string | content | |
String& | error | |
Byte[]& | cookieContainerBytes | |
string | contentPostingType | |
string | proxy | |
string | encoding | |
ResponceType | respType | |
int | timeout | |
string | cookies | |
string | userAgent | |
bool | useRedirect | |
int | maxRedirectCount | |
String[] | additionalHeaders | |
string | downloadPath | |
bool | useOriginalUrl | |
bool | legacyMultipart | |
ICookieContainer | cookieContainer | |
bool | removeDefaultHeaders |
HttpPost
Method
string HttpPost(string url, Byte[] content, String& error, Byte[]& cookieContainerBytes, string contentPostingType, string proxy, string encoding, ResponceType respType, int timeout, string cookies, string userAgent, bool useRedirect, int maxRedirectCount, String[] additionalHeaders, string downloadPath, bool useOriginalUrl, bool legacyMultipart, ICookieContainer cookieContainer, bool removeDefaultHeaders)
Parameters
| Type | Name | Description |
|---|---|---|
string | url | |
Byte[] | content | |
String& | error | |
Byte[]& | cookieContainerBytes | |
string | contentPostingType | |
string | proxy | |
string | encoding | |
ResponceType | respType | |
int | timeout | |
string | cookies | |
string | userAgent | |
bool | useRedirect | |
int | maxRedirectCount | |
String[] | additionalHeaders | |
string | downloadPath | |
bool | useOriginalUrl | |
bool | legacyMultipart | |
ICookieContainer | cookieContainer | |
bool | removeDefaultHeaders |
HttpPut
Method
string HttpPut(string url, Byte[] content, String& error, Byte[]& cookieContainerBytes, string contentPostingType, string proxy, string encoding, ResponceType respType, int timeout, string cookies, string userAgent, bool useRedirect, int maxRedirectCount, String[] additionalHeaders, string downloadPath, bool useOriginalUrl, bool legacyMultipart, ICookieContainer cookieContainer, bool removeDefaultHeaders)
Parameters
| Type | Name | Description |
|---|---|---|
string | url | |
Byte[] | content | |
String& | error | |
Byte[]& | cookieContainerBytes | |
string | contentPostingType | |
string | proxy | |
string | encoding | |
ResponceType | respType | |
int | timeout | |
string | cookies | |
string | userAgent | |
bool | useRedirect | |
int | maxRedirectCount | |
String[] | additionalHeaders | |
string | downloadPath | |
bool | useOriginalUrl | |
bool | legacyMultipart | |
ICookieContainer | cookieContainer | |
bool | removeDefaultHeaders |
HttpPut
Method
string HttpPut(string url, string content, String& error, Byte[]& cookieContainerBytes, string contentPostingType, string proxy, string encoding, ResponceType respType, int timeout, string cookies, string userAgent, bool useRedirect, int maxRedirectCount, String[] additionalHeaders, string downloadPath, bool useOriginalUrl, bool legacyMultipart, ICookieContainer cookieContainer, bool removeDefaultHeaders)
Parameters
| Type | Name | Description |
|---|---|---|
string | url | |
string | content | |
String& | error | |
Byte[]& | cookieContainerBytes | |
string | contentPostingType | |
string | proxy | |
string | encoding | |
ResponceType | respType | |
int | timeout | |
string | cookies | |
string | userAgent | |
bool | useRedirect | |
int | maxRedirectCount | |
String[] | additionalHeaders | |
string | downloadPath | |
bool | useOriginalUrl | |
bool | legacyMultipart | |
ICookieContainer | cookieContainer | |
bool | removeDefaultHeaders |
HttpPatch
Method
string HttpPatch(string url, Byte[] content, String& error, Byte[]& cookieContainerBytes, string contentPostingType, string proxy, string encoding, ResponceType respType, int timeout, string cookies, string userAgent, bool useRedirect, int maxRedirectCount, String[] additionalHeaders, string downloadPath, bool useOriginalUrl, bool legacyMultipart, ICookieContainer cookieContainer, bool removeDefaultHeaders)
Parameters
| Type | Name | Description |
|---|---|---|
string | url | |
Byte[] | content | |
String& | error | |
Byte[]& | cookieContainerBytes | |
string | contentPostingType | |
string | proxy | |
string | encoding | |
ResponceType | respType | |
int | timeout | |
string | cookies | |
string | userAgent | |
bool | useRedirect | |
int | maxRedirectCount | |
String[] | additionalHeaders | |
string | downloadPath | |
bool | useOriginalUrl | |
bool | legacyMultipart | |
ICookieContainer | cookieContainer | |
bool | removeDefaultHeaders |
HttpPatch
Method
string HttpPatch(string url, string content, String& error, Byte[]& cookieContainerBytes, string contentPostingType, string proxy, string encoding, ResponceType respType, int timeout, string cookies, string userAgent, bool useRedirect, int maxRedirectCount, String[] additionalHeaders, string downloadPath, bool useOriginalUrl, bool legacyMultipart, ICookieContainer cookieContainer, bool removeDefaultHeaders)
Parameters
| Type | Name | Description |
|---|---|---|
string | url | |
string | content | |
String& | error | |
Byte[]& | cookieContainerBytes | |
string | contentPostingType | |
string | proxy | |
string | encoding | |
ResponceType | respType | |
int | timeout | |
string | cookies | |
string | userAgent | |
bool | useRedirect | |
int | maxRedirectCount | |
String[] | additionalHeaders | |
string | downloadPath | |
bool | useOriginalUrl | |
bool | legacyMultipart | |
ICookieContainer | cookieContainer | |
bool | removeDefaultHeaders |
HttpDeleteBytes
Method
Byte[] HttpDeleteBytes(string url, string content, String& error, Byte[]& cookieContainerBytes, string contentPostingType, string proxy, string encoding, ResponceType respType, int timeout, string cookies, string userAgent, bool useRedirect, int maxRedirectCount, String[] additionalHeaders, bool useOriginalUrl, bool legacyMultipart, ICookieContainer cookieContainer, bool removeDefaultHeaders)
Parameters
| Type | Name | Description |
|---|---|---|
string | url | |
string | content | |
String& | error | |
Byte[]& | cookieContainerBytes | |
string | contentPostingType | |
string | proxy | |
string | encoding | |
ResponceType | respType | |
int | timeout | |
string | cookies | |
string | userAgent | |
bool | useRedirect | |
int | maxRedirectCount | |
String[] | additionalHeaders | |
bool | useOriginalUrl | |
bool | legacyMultipart | |
ICookieContainer | cookieContainer | |
bool | removeDefaultHeaders |
HttpDeleteBytes
Method
Byte[] HttpDeleteBytes(string url, Byte[] content, String& error, Byte[]& cookieContainerBytes, string contentPostingType, string proxy, string encoding, ResponceType respType, int timeout, string cookies, string userAgent, bool useRedirect, int maxRedirectCount, String[] additionalHeaders, bool useOriginalUrl, bool legacyMultipart, ICookieContainer cookieContainer, bool removeDefaultHeaders)
Parameters
| Type | Name | Description |
|---|---|---|
string | url | |
Byte[] | content | |
String& | error | |
Byte[]& | cookieContainerBytes | |
string | contentPostingType | |
string | proxy | |
string | encoding | |
ResponceType | respType | |
int | timeout | |
string | cookies | |
string | userAgent | |
bool | useRedirect | |
int | maxRedirectCount | |
String[] | additionalHeaders | |
bool | useOriginalUrl | |
bool | legacyMultipart | |
ICookieContainer | cookieContainer | |
bool | removeDefaultHeaders |
HttpPostBytes
Method
Byte[] HttpPostBytes(string url, string content, String& error, Byte[]& cookieContainerBytes, string contentPostingType, string proxy, string encoding, ResponceType respType, int timeout, string cookies, string userAgent, bool useRedirect, int maxRedirectCount, String[] additionalHeaders, bool useOriginalUrl, bool legacyMultipart, ICookieContainer cookieContainer, bool removeDefaultHeaders)
Parameters
| Type | Name | Description |
|---|---|---|
string | url | |
string | content | |
String& | error | |
Byte[]& | cookieContainerBytes | |
string | contentPostingType | |
string | proxy | |
string | encoding | |
ResponceType | respType | |
int | timeout | |
string | cookies | |
string | userAgent | |
bool | useRedirect | |
int | maxRedirectCount | |
String[] | additionalHeaders | |
bool | useOriginalUrl | |
bool | legacyMultipart | |
ICookieContainer | cookieContainer | |
bool | removeDefaultHeaders |
HttpPostBytes
Method
Byte[] HttpPostBytes(string url, Byte[] content, String& error, Byte[]& cookieContainerBytes, string contentPostingType, string proxy, string encoding, ResponceType respType, int timeout, string cookies, string userAgent, bool useRedirect, int maxRedirectCount, String[] additionalHeaders, bool useOriginalUrl, bool legacyMultipart, ICookieContainer cookieContainer, bool removeDefaultHeaders)
Parameters
| Type | Name | Description |
|---|---|---|
string | url | |
Byte[] | content | |
String& | error | |
Byte[]& | cookieContainerBytes | |
string | contentPostingType | |
string | proxy | |
string | encoding | |
ResponceType | respType | |
int | timeout | |
string | cookies | |
string | userAgent | |
bool | useRedirect | |
int | maxRedirectCount | |
String[] | additionalHeaders | |
bool | useOriginalUrl | |
bool | legacyMultipart | |
ICookieContainer | cookieContainer | |
bool | removeDefaultHeaders |
HttpPutBytes
Method
Byte[] HttpPutBytes(string url, string content, String& error, Byte[]& cookieContainerBytes, string contentPostingType, string proxy, string encoding, ResponceType respType, int timeout, string cookies, string userAgent, bool useRedirect, int maxRedirectCount, String[] additionalHeaders, bool useOriginalUrl, bool legacyMultipart, ICookieContainer cookieContainer, bool removeDefaultHeaders)
Parameters
| Type | Name | Description |
|---|---|---|
string | url | |
string | content | |
String& | error | |
Byte[]& | cookieContainerBytes | |
string | contentPostingType | |
string | proxy | |
string | encoding | |
ResponceType | respType | |
int | timeout | |
string | cookies | |
string | userAgent | |
bool | useRedirect | |
int | maxRedirectCount | |
String[] | additionalHeaders | |
bool | useOriginalUrl | |
bool | legacyMultipart | |
ICookieContainer | cookieContainer | |
bool | removeDefaultHeaders |
HttpPutBytes
Method
Byte[] HttpPutBytes(string url, Byte[] content, String& error, Byte[]& cookieContainerBytes, string contentPostingType, string proxy, string encoding, ResponceType respType, int timeout, string cookies, string userAgent, bool useRedirect, int maxRedirectCount, String[] additionalHeaders, bool useOriginalUrl, bool legacyMultipart, ICookieContainer cookieContainer, bool removeDefaultHeaders)
Parameters
| Type | Name | Description |
|---|---|---|
string | url | |
Byte[] | content | |
String& | error | |
Byte[]& | cookieContainerBytes | |
string | contentPostingType | |
string | proxy | |
string | encoding | |
ResponceType | respType | |
int | timeout | |
string | cookies | |
string | userAgent | |
bool | useRedirect | |
int | maxRedirectCount | |
String[] | additionalHeaders | |
bool | useOriginalUrl | |
bool | legacyMultipart | |
ICookieContainer | cookieContainer | |
bool | removeDefaultHeaders |
HttpPatchBytes
Method
Byte[] HttpPatchBytes(string url, string content, String& error, Byte[]& cookieContainerBytes, string contentPostingType, string proxy, string encoding, ResponceType respType, int timeout, string cookies, string userAgent, bool useRedirect, int maxRedirectCount, String[] additionalHeaders, bool useOriginalUrl, bool legacyMultipart, ICookieContainer cookieContainer, bool removeDefaultHeaders)
Parameters
| Type | Name | Description |
|---|---|---|
string | url | |
string | content | |
String& | error | |
Byte[]& | cookieContainerBytes | |
string | contentPostingType | |
string | proxy | |
string | encoding | |
ResponceType | respType | |
int | timeout | |
string | cookies | |
string | userAgent | |
bool | useRedirect | |
int | maxRedirectCount | |
String[] | additionalHeaders | |
bool | useOriginalUrl | |
bool | legacyMultipart | |
ICookieContainer | cookieContainer | |
bool | removeDefaultHeaders |
HttpPatchBytes
Method
Byte[] HttpPatchBytes(string url, Byte[] content, String& error, Byte[]& cookieContainerBytes, string contentPostingType, string proxy, string encoding, ResponceType respType, int timeout, string cookies, string userAgent, bool useRedirect, int maxRedirectCount, String[] additionalHeaders, bool useOriginalUrl, bool legacyMultipart, ICookieContainer cookieContainer, bool removeDefaultHeaders)
Parameters
| Type | Name | Description |
|---|---|---|
string | url | |
Byte[] | content | |
String& | error | |
Byte[]& | cookieContainerBytes | |
string | contentPostingType | |
string | proxy | |
string | encoding | |
ResponceType | respType | |
int | timeout | |
string | cookies | |
string | userAgent | |
bool | useRedirect | |
int | maxRedirectCount | |
String[] | additionalHeaders | |
bool | useOriginalUrl | |
bool | legacyMultipart | |
ICookieContainer | cookieContainer | |
bool | removeDefaultHeaders |
ImageProcessingUntreatedFromScreenshot
Method
void ImageProcessingUntreatedFromScreenshot(int port, string path, int quality, string exif)
Parameters
| Type | Name | Description |
|---|---|---|
int | port | |
string | path | |
int | quality | |
string | exif |
ImageProcessingUntreatedFromUrl
Method
void ImageProcessingUntreatedFromUrl(string url, string savePath, int quality, string exif)
Parameters
| Type | Name | Description |
|---|---|---|
string | url | |
string | savePath | |
int | quality | |
string | exif |
ImageProcessingUntreatedFromFile
Method
void ImageProcessingUntreatedFromFile(string filePath, string savePath, int quality, string exif)
Parameters
| Type | Name | Description |
|---|---|---|
string | filePath | |
string | savePath | |
int | quality | |
string | exif |
ImageProcessingResizeFromScreenshot
Method
void ImageProcessingResizeFromScreenshot(int port, string savePath, int width, int height, string units, bool keep, bool notIncImage, int quality, string exif)
Parameters
| Type | Name | Description |
|---|---|---|
int | port | |
string | savePath | |
int | width | |
int | height | |
string | units | |
bool | keep | |
bool | notIncImage | |
int | quality | |
string | exif |
ImageProcessingResizeFromUrl
Method
void ImageProcessingResizeFromUrl(string url, string savePath, int width, int height, string units, bool keep, bool notIncImage, int quality, string exif)
Parameters
| Type | Name | Description |
|---|---|---|
string | url | |
string | savePath | |
int | width | |
int | height | |
string | units | |
bool | keep | |
bool | notIncImage | |
int | quality | |
string | exif |
ImageProcessingResizeFromFile
Method
void ImageProcessingResizeFromFile(string filePath, string savePath, int width, int height, string units, bool keep, bool notIncImage, int quality, string exif)
Parameters
| Type | Name | Description |
|---|---|---|
string | filePath | |
string | savePath | |
int | width | |
int | height | |
string | units | |
bool | keep | |
bool | notIncImage | |
int | quality | |
string | exif |
ImageProcessingCropFromScreenshot
Method
void ImageProcessingCropFromScreenshot(int port, string savePath, int leftBorder, int topBorder, int cropWidth, int cropHeight, string units, int quality, string exif)
Parameters
| Type | Name | Description |
|---|---|---|
int | port | |
string | savePath | |
int | leftBorder | |
int | topBorder | |
int | cropWidth | |
int | cropHeight | |
string | units | |
int | quality | |
string | exif |
ImageProcessingCropFromUrl
Method
void ImageProcessingCropFromUrl(string url, string savePath, int leftBorder, int topBorder, int cropWidth, int cropHeight, string units, int quality, string exif)
Parameters
| Type | Name | Description |
|---|---|---|
string | url | |
string | savePath | |
int | leftBorder | |
int | topBorder | |
int | cropWidth | |
int | cropHeight | |
string | units | |
int | quality | |
string | exif |
ImageProcessingCropFromFile
Method
void ImageProcessingCropFromFile(string filePath, string savePath, int leftBorder, int topBorder, int cropWidth, int cropHeight, string units, int quality, string exif)
Parameters
| Type | Name | Description |
|---|---|---|
string | filePath | |
string | savePath | |
int | leftBorder | |
int | topBorder | |
int | cropWidth | |
int | cropHeight | |
string | units | |
int | quality | |
string | exif |
ImageProcessingRotateFromScreenshot
Method
void ImageProcessingRotateFromScreenshot(int port, string savePath, int angle, int quality, string exif)
Parameters
| Type | Name | Description |
|---|---|---|
int | port | |
string | savePath | |
int | angle | |
int | quality | |
string | exif |
ImageProcessingRotateFromUrl
Method
void ImageProcessingRotateFromUrl(string url, string savePath, int angle, int quality, string exif)
Parameters
| Type | Name | Description |
|---|---|---|
string | url | |
string | savePath | |
int | angle | |
int | quality | |
string | exif |
ImageProcessingRotateFromFile
Method
void ImageProcessingRotateFromFile(string filePath, string savePath, int angle, int quality, string exif)
Parameters
| Type | Name | Description |
|---|---|---|
string | filePath | |
string | savePath | |
int | angle | |
int | quality | |
string | exif |
ImageProcessingWaterMarkTextFromScreenshot
Method
void ImageProcessingWaterMarkTextFromScreenshot(int port, string savePath, string imposition, string location, string text, int transparency, string style, int offsetLeft, int offsetTop, int quality, string exif)
Parameters
| Type | Name | Description |
|---|---|---|
int | port | |
string | savePath | |
string | imposition | |
string | location | |
string | text | |
int | transparency | |
string | style | |
int | offsetLeft | |
int | offsetTop | |
int | quality | |
string | exif |
ImageProcessingWaterMarkTextFromUrl
Method
void ImageProcessingWaterMarkTextFromUrl(string url, string savePath, string imposition, string location, string text, int transparency, string style, int offsetLeft, int offsetTop, int quality, string exif)
Parameters
| Type | Name | Description |
|---|---|---|
string | url | |
string | savePath | |
string | imposition | |
string | location | |
string | text | |
int | transparency | |
string | style | |
int | offsetLeft | |
int | offsetTop | |
int | quality | |
string | exif |
ImageProcessingWaterMarkTextFromFile
Method
void ImageProcessingWaterMarkTextFromFile(string filePath, string savePath, string imposition, string location, string text, int transparency, string style, int offsetLeft, int offsetTop, int quality, string exif)
Parameters
| Type | Name | Description |
|---|---|---|
string | filePath | |
string | savePath | |
string | imposition | |
string | location | |
string | text | |
int | transparency | |
string | style | |
int | offsetLeft | |
int | offsetTop | |
int | quality | |
string | exif |
ImageProcessingWaterMarkImageFromScreenshot
Method
void ImageProcessingWaterMarkImageFromScreenshot(int port, string savePath, string imposition, string location, string path, int transparency, int offsetLeft, int offsetTop, int quality, string exif)
Parameters
| Type | Name | Description |
|---|---|---|
int | port | |
string | savePath | |
string | imposition | |
string | location | |
string | path | |
int | transparency | |
int | offsetLeft | |
int | offsetTop | |
int | quality | |
string | exif |
ImageProcessingWaterMarkImageFromUrl
Method
void ImageProcessingWaterMarkImageFromUrl(string url, string savePath, string imposition, string location, string path, int transparency, int offsetLeft, int offsetTop, int quality, string exif)
Parameters
| Type | Name | Description |
|---|---|---|
string | url | |
string | savePath | |
string | imposition | |
string | location | |
string | path | |
int | transparency | |
int | offsetLeft | |
int | offsetTop | |
int | quality | |
string | exif |
ImageProcessingWaterMarkImageFromFile
Method
void ImageProcessingWaterMarkImageFromFile(string filePath, string savePath, string imposition, string location, string path, int transparency, int offsetLeft, int offsetTop, int quality, string exif)
Parameters
| Type | Name | Description |
|---|---|---|
string | filePath | |
string | savePath | |
string | imposition | |
string | location | |
string | path | |
int | transparency | |
int | offsetLeft | |
int | offsetTop | |
int | quality | |
string | exif |
ImageProcessingMirrorFromScreenshot
Method
void ImageProcessingMirrorFromScreenshot(int instancePort, string savePath, string mirror, int quality, string exif)
Parameters
| Type | Name | Description |
|---|---|---|
int | instancePort | |
string | savePath | |
string | mirror | |
int | quality | |
string | exif |
ImageProcessingMirrorFromUrl
Method
void ImageProcessingMirrorFromUrl(string url, string savePath, string mirror, int quality, string exif)
Parameters
| Type | Name | Description |
|---|---|---|
string | url | |
string | savePath | |
string | mirror | |
int | quality | |
string | exif |
ImageProcessingMirrorFromFile
Method
void ImageProcessingMirrorFromFile(string filePath, string savePath, string mirror, int quality, string exif)
Parameters
| Type | Name | Description |
|---|---|---|
string | filePath | |
string | savePath | |
string | mirror | |
int | quality | |
string | exif |
ImageProcessingClearExifFromScreenshot
Method
void ImageProcessingClearExifFromScreenshot(int instancePort, string savePath, int quality)
Parameters
| Type | Name | Description |
|---|---|---|
int | instancePort | |
string | savePath | |
int | quality |
ImageProcessingClearExifFromUrl
Method
void ImageProcessingClearExifFromUrl(string url, string savePath, int quality)
Parameters
| Type | Name | Description |
|---|---|---|
string | url | |
string | savePath | |
int | quality |
ImageProcessingClearExifFromFile
Method
void ImageProcessingClearExifFromFile(string filePath, string savePath, int quality)
Parameters
| Type | Name | Description |
|---|---|---|
string | filePath | |
string | savePath | |
int | quality |
DbExecuteNonQuery
Method
int DbExecuteNonQuery(string query, OrderedDictionary param, DbProvider provider, string connectionString, bool throwExceptions)
Executes a SQL statement against the connection and returns the number of rows affected
Parameters
| Type | Name | Description |
|---|---|---|
string | query | SQL query |
OrderedDictionary | param | Query parameters |
DbProvider | provider | Provider type |
string | connectionString | Connection string |
bool | throwExceptions | Whether to throw exceptions on fail (true), or not (false) |
Returns: The number of rows affected
DbExecuteScalar
Method
string DbExecuteScalar(string query, OrderedDictionary param, DbProvider provider, string connectionString, bool throwExceptions)
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
| Type | Name | Description |
|---|---|---|
string | query | SQL query |
OrderedDictionary | param | Query parameters |
DbProvider | provider | Provider type |
string | connectionString | Connection string |
bool | 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
int DbExecuteQuery(string query, OrderedDictionary param, DbProvider provider, string connectionString, IZennoTable& table, bool throwExceptions)
Parameters
| Type | Name | Description |
|---|---|---|
string | query | |
OrderedDictionary | param | |
DbProvider | provider | |
string | connectionString | |
IZennoTable& | table | |
bool | throwExceptions |
DbExecuteQuery
Method
int DbExecuteQuery(string query, OrderedDictionary param, DbProvider provider, string connectionString, IZennoList& list, string separator, bool throwExceptions)
Parameters
| Type | Name | Description |
|---|---|---|
string | query | |
OrderedDictionary | param | |
DbProvider | provider | |
string | connectionString | |
IZennoList& | list | |
string | separator | |
bool | throwExceptions |
DbExecuteQuery
Method
string DbExecuteQuery(string query, OrderedDictionary param, DbProvider provider, string connectionString, string fieldSeparator, string rowSeparator, bool throwExceptions)
Execute SQL query and return result as string
Parameters
| Type | Name | Description |
|---|---|---|
string | query | SQL query |
OrderedDictionary | param | Query parameters |
DbProvider | provider | Provider type |
string | connectionString | Connection string |
string | fieldSeparator | Field separator |
string | rowSeparator | Row separator. If null - Environment.NewLine |
bool | throwExceptions | Whether to throw exceptions on fail (true), or not (false) |
Returns: Result string
ParseByXpath
Method
IEnumerable<string> ParseByXpath(string source, string xpath, string attribute)
Parse html document by xpath
Parameters
| Type | Name | Description |
|---|---|---|
string | source | Html document |
string | xpath | XPath |
string | attribute | The attribute to take |
ParseByCssSelector
Method
IEnumerable<string> ParseByCssSelector(string source, string cssSelector, string attribute)
Parse html document by css-selector
Parameters
| Type | Name | Description |
|---|---|---|
string | source | Html document |
string | cssSelector | CSS-selector |
string | attribute | The attribute to take |
SmsGetNumber
Method
string SmsGetNumber(string serviceDll, String& number, string service, string oper, Nullable<bool> forward, string param)
Parameters
| Type | Name | Description |
|---|---|---|
string | serviceDll | |
String& | number | |
string | service | |
string | oper | |
Nullable<bool> | forward | |
string | param |
SmsSetStatus
Method
string SmsSetStatus(string serviceDll, string id, SmsServiceStatus status, string forwardNum, string param)
Parameters
| Type | Name | Description |
|---|---|---|
string | serviceDll | |
string | id | |
SmsServiceStatus | status | |
string | forwardNum | |
string | param |
SmsGetStatus
Method
string SmsGetStatus(string serviceDll, string id, string param, int timeout)
Parameters
| Type | Name | Description |
|---|---|---|
string | serviceDll | |
string | id | |
string | param | |
int | timeout |
IpToolsGetGeoposition
Method
void IpToolsGetGeoposition(string ip, Double& latitude, Double& longitude)
Parameters
| Type | Name | Description |
|---|---|---|
string | ip | |
Double& | latitude | |
Double& | longitude |
IpToolsGetTimezone
Method
void IpToolsGetTimezone(string ip, Int32& hours, Int32& minutes)
Parameters
| Type | Name | Description |
|---|---|---|
string | ip | |
Int32& | hours | |
Int32& | minutes |
GetThreadsCount
Method
int GetThreadsCount()