ExternalService Class

This base class represents an external service inside Revit application.
Inheritance Hierarchy

Namespace: Autodesk.Revit.DB.ExternalService
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class ExternalService : IDisposable

The ExternalService type exposes the following members.

Properties
 NameDescription
Public propertyDescription The description for the service
Public propertyIsSerializable Indicates whether executions of the service requires serialization in documents or not.
Public propertyIsValidObject Specifies whether the .NET object represents a valid Revit entity.
Public propertyName The name of the service
Public propertyNumberOfServers Indicates the number of servers currently registered with the service.
Public propertyServiceId The Id of the service
Public propertySupportActivation Indicates if the service supports activation/deactivation of the servers.
Public propertyVendorId The vendor who provided the service
Top
Methods
 NameDescription
Public methodAddServer Registers a server with its service.
Public methodDisposeReleases all resources used by the ExternalService
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetDefaultServerId Returns the Id of the default server if one was assigned to the service.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetOptions A copy of the options the service was registered with.
Public methodGetPublicAccessKey Access key to use to execute a service.
Public methodGetRegisteredServerIds Returns Ids of all servers registered for the service.
Public methodGetServer Returns the instance that provides implementation for a registered server.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodIsRegisteredServerId Checks if the Id represents a valid server that has been registered for the service.
Public methodRemoveServer Removes/unregisters a server from the service.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Remarks

This is a base class from which SingleServerService and MultiServerService classes are inherited. It implements all basic methods, but the two inherited classes add more methods specific for that kind of service the class represents. Use this base class to get information about a service and its servers. Use the specific inherited classes to set or get active servers.

Summary of common methods:
  • Adding and removing a server to and from a service
  • Getting information about a service
  • Querying a number of servers registered for a service
  • Accessing servers currently registered for a service
Summary of the service-specific methods:
  • Getting and setting active server (or servers) for a service
See Also