2021 Method
Changes 0
M

SingleServerService.SetActiveServer

Description:
Change the active server for a specific document.
Remarks:

Only one server per document can be set as active at any given time in a single-server service. A document does not have to have an explicitly set active server though - the application-wide active server would be normally used when the service is executed for such a document.

Having an active server for a document overrules the active server set for the application. That means if the service gets executed in this particular document, the document-specific server will be used instead of the application-wide one.

It is possible to set a server as active when another server is already active for that service in this document. Making a server active will automatically deactivate the server that was active before this call.

Overloads (2):
SetActiveServer(Guid,Document)
public void SetActiveServer(
	Guid serverId,
	Document document
)