<PackageReference Include="Relativity.Server.Services.Interfaces.SDK" Version="5000.0.2" />

IEventHandlerManager

public interface IEventHandlerManager : IDisposable
Exposes the methods for managing event handlers on object types.
Task AttachAsync(int workspaceID, int objectTypeID, int eventHandlerID)

Attaches an event handler to an object type.

Task DetachAsync(int workspaceID, int objectTypeID, int eventHandlerID)

Detaches an event handler from an object type. The event handler cannot be removed if its apart of a locked application.

Task<List<EventHandlerResponse>> GetAttachedAsync(int workspaceID, int objectTypeID)

Lists the attached event handlers on an object type.

Task<List<EventHandlerResponse>> GetAvailableEventHandlersAsync(int workspaceID, int objectTypeID)

Returns a list of event handlers availabe to attach to an object type.