Share via


LauncherTaskCompleted(String, String) Method

The LauncherTaskCompleted method of the IHtmlTrLoadBalancer interface notifies the load balancer component that the server has completed the specified document conversion task.

Parameters

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 the StrGetLauncher method.

Return Value

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

Example

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

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security