Method | Description | |
---|---|---|
AcceptAllCertifications ( object sender, System certification, System chain, System sslPolicyErrors ) : bool | ||
GetAccessToken ( string cliendID, string clientSecret ) : void |
Gets the access token.(Async) will set the IsInitialized Variable when done
|
|
TranslateArray ( List |
||
TranslateText ( string textToTranslate, string languageFrom, string languageTo, string key, TranslateCompleteCallback callbackMethod ) : void |
Translates the text.
|
Method | Description | |
---|---|---|
GetAllTranslationLanguages ( ) : void |
Gets a list of all the languages available in the Microsoft Translator API
|
|
GetResponseCallback ( IAsyncResult ar ) : void |
Gets the response callback for authentication
|
|
RequestStreamReady ( IAsyncResult ar ) : void |
Makes the request to the server for the authorization.
|
|
TranslationReady ( IAsyncResult ar ) : void |
Recieves the translation and invokes the callback method sending the translated value
|
public AcceptAllCertifications ( object sender, System certification, System chain, System sslPolicyErrors ) : bool | ||
sender | object | |
certification | System | |
chain | System | |
sslPolicyErrors | System | |
return | bool |
public GetAccessToken ( string cliendID, string clientSecret ) : void | ||
cliendID | string | /// Cliend I. /// |
clientSecret | string | /// Client secret. /// |
return | void |
public TranslateArray ( List |
||
textsToTranslate | List |
|
languageFrom | string | |
languageTo | string | |
keys | List |
|
callbackMethod | TranslateCompleteArrayCallback | |
return | void |
public TranslateText ( string textToTranslate, string languageFrom, string languageTo, string key, TranslateCompleteCallback callbackMethod ) : void | ||
textToTranslate | string | /// Text to translate. /// |
languageFrom | string | /// Language from. /// |
languageTo | string | /// Language to. /// |
key | string | /// Key. This value will be returned in the callback /// |
callbackMethod | TranslateCompleteCallback | /// Callback method. /// |
return | void |