Skip to content

SingleServerService

Public Class

This class represents a single-server service inside Revit application. It is created when an instance of ISingleServerService is registered with Revit.

Inheritance Hierarchy

System.Object
Autodesk.Revit.DB.ExternalService.ExternalService
Autodesk.Revit.DB.ExternalService.SingleServerService

Namespace: Autodesk.Revit.DB.ExternalService

Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)

Syntax

public class SingleServerService : ExternalService

The SingleServerService type exposes the following members.

Properties

Name

Description


Public Property

The description for the service
(Inherited from ExternalService)


Public Property
IsSerializable

Indicates whether executions of the service requires serialization in documents or not.
(Inherited from ExternalService)


Public Property
IsValidObject

Specifies whether the .NET object represents a valid Revit entity.
(Inherited from ExternalService)


Public Property

The name of the service
(Inherited from ExternalService)


Public Property
NumberOfServers

Indicates the number of servers currently registered with the service.
(Inherited from ExternalService)


Public Property

The Id of the service
(Inherited from ExternalService)


Public Property
SupportActivation

Indicates if the service supports activation/deactivation of the servers.
(Inherited from ExternalService)


Public Property

The vendor who provided the service
(Inherited from ExternalService)


Methods

Name

Description


Public Method
AddServer

Registers a server with its service.
(Inherited from ExternalService)


Public Method

(Inherited from ExternalService)


Public Method

Equals

Determines whether the specified object is equal to the current object.
(Inherited from Object)


Public Method

Returns the Id of the currently active application-level server of the service.


Public Method

Returns the Id of the server currently associated with the given document for the service.


Public Method
GetDefaultServerId

Returns the Id of the default server if one was assigned to the service.
(Inherited from ExternalService)


Public Method

GetHashCode

Serves as the default hash function.
(Inherited from Object)


Public Method
GetOptions

A copy of the options the service was registered with.
(Inherited from ExternalService)


Public Method
GetPublicAccessKey

Access key to use to execute a service.
(Inherited from ExternalService)


Public Method
GetRegisteredServerIds

Returns Ids of all servers registered for the service.
(Inherited from ExternalService)


Public Method

Returns the instance that provides implementation for a registered server.
(Inherited from ExternalService)


Public Method

GetType

Gets the Type of the current instance.
(Inherited from Object)


Public Method

Checks if the Id represents a valid server that has been registered for the service.
(Inherited from ExternalService)


Public Method
RemoveServer

Removes/unregisters a server from the service.
(Inherited from ExternalService)


Public Method
SetActiveServer(Guid)

Set an active server applicable application-wide for the service.


Public Method
SetActiveServer(Guid, Document)

Change the active server for a specific document.


Public Method

ToString

Returns a string that represents the current object.
(Inherited from Object)


Public Method
UnsetActiveServer

Unset the active server for the particular document.