Compartir a través de


: IHtmlTrLoadBalancer.LauncherTaskCompleted (Método) (Microsoft.HtmlTrans)

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

Espacio de nombres:
Ensamblado: Microsoft.HtmlTrans.Interface (in microsoft.htmltrans.interface.dll)

Sintaxis

'Declaración
Function LauncherTaskCompleted ( _
    strLauncherUri As String, _
    strTaskName As String _
) As Boolean
'Uso
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
)

Parámetros

  • strLauncherUri
    The name of the server that has completed the document conversion task.
  • strTaskName
    The name of the document conversion task previously passed in the call to theStrGetLauncher method.

Valor devuelto

Boolean Returns true for success, false for failure.

Comentarios

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).

Ejemplo

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

Vea también

Referencia

IHtmlTrLoadBalancer (Interfaz)
IHtmlTrLoadBalancer (Miembros)
Microsoft.HtmlTrans (Espacio de nombres)