EventSubscriptionHandler Class

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: string, events: IModelHubEventType[]): Promise<EventSubscription> Create an EventSubscription.  
create(requestContext: AuthorizedClientRequestContext, iModelId: string, events: []): Promise<EventSubscription> Create an EventSubscription.  
delete(requestContext: AuthorizedClientRequestContext, iModelId: string, eventSubscriptionId: string): Promise<void> Delete an EventSubscription.  
update(requestContext: AuthorizedClientRequestContext, iModelId: string, subscription: EventSubscription): Promise<EventSubscription> Update an EventSubscription.  

Defined in

Last Updated: 11 June, 2024