EventSubscriptionHandler Class

Beta

Handler for managing EventSubscriptions. Use EventHandler.Subscriptions to get an instance of this class.

Methods

Name Description
constructor(handler: IModelBaseHandler): EventSubscriptionHandler Constructor for EventSubscriptionHandler.  
create(requestContext: AuthorizedClientRequestContext, iModelId: GuidString, events: EventType[]): Promise<EventSubscription> Create an EventSubscription.  
delete(requestContext: AuthorizedClientRequestContext, iModelId: GuidString, eventSubscriptionId: string): Promise<void> Delete an EventSubscription.  
update(requestContext: AuthorizedClientRequestContext, iModelId: GuidString, subscription: EventSubscription): Promise<EventSubscription> Update an EventSubscription.  

Defined in

Last Updated: 08 January, 2020