Home > @xoram/core > ApplicationServiceHooks
ApplicationServiceHooks type
Service related hooks emitted by the application.
Signature:
typescript
export type ApplicationServiceHooks = {
beforeServiceAdded: {
app: Application;
service: Service;
serviceId: ServiceId;
};
serviceAdded: {
app: Application;
service: Service;
serviceId: ServiceId;
};
beforeServiceRemoved: {
app: Application;
serviceId: ServiceId;
service: Service;
};
serviceRemoved: {
app: Application;
serviceId: ServiceId;
};
};
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
References: Application, Service, ServiceId