IHtmlTrLoadBalancer.LauncherTaskCompleted Method

Notifies the load balancer component that the server has completed the specified document conversion task.

Namespace:  Microsoft.HtmlTrans
Assembly:  Microsoft.HtmlTrans.Interface (in Microsoft.HtmlTrans.Interface.dll)

Syntax

Function LauncherTaskCompleted ( _
    strLauncherUri As String, _
    strTaskName As String _
) As Boolean

Dim instance As IHtmlTrLoadBalancer
Dim strLauncherUri As String
Dim strTaskName As String
Dim returnValue As Boolean

returnValue = instance.LauncherTaskCompleted(strLauncherUri, _
    strTaskName)
bool LauncherTaskCompleted(
    string strLauncherUri,
    string strTaskName
)

Parameters

  • strLauncherUri
    Type: System.String
    The name of the server that has completed the document conversion task.

Return Value

Type: System.Boolean
Boolean Returns true for success, false for failure.

Remarks

The LauncherTaskCompleted method notifies the load balancer that the specified server has completed the specified document conversion task. The load balancer uses the task name previously passed in the call to the StrGetLauncher method to keep track of the load on a particular launcher and to determine which server name the StrGetLauncher method will return on the next invocation. Calling the LauncherTaskCompleted method when a particular task has finished on the launcher lets the load balancer know that the load on that launcher has decreased and allows the launcher service to reuse the task name (in case another user requests the same document).

Examples

For a code example that demonstrates the use of the IHtmlTrLoadBalancer and IHtmlTrLauncher interfaces, including the LauncherTaskCompleted method, see the CHICreateHtml method.

See Also

Reference

IHtmlTrLoadBalancer Interface

IHtmlTrLoadBalancer Members

Microsoft.HtmlTrans Namespace