IExternal |
Implement this method to execute the given server.
Namespace: Autodesk.Revit.DB.ExternalService
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)

Parameters
- server IExternalServer
- An instance of a server that is to be executed.
- document Document
- The associated document. It may be NULL if the service is not being executed in a document.
- data IExternalData
- The associated service data.
Return Value
BooleanTrue indicates a successful execution of the call. False indicates a failure.
If a multi-server service returns false from the call, the service manager will stop the execution loop and marks the service execution as unsuccessful.

It is completely upon the service to decide what the communication with the server should be like, for it is the service provider who also defines what the server's interface looks like. It could be as simple as calling one method (e.g. Execute, Run, Calculate, etc.) or it could be a set of inquiries and executing calls to the server.
The framework invokes this method when the service is requested to be executed. The framework first checks what the applicable server (or servers, in a multi-server service) is and then it calls this method with that server as an argument.
