@abmprotocl/services-core 中文文档教程
@makerdao/services-core
dai.js 中使用的依赖注入框架。
TODO
- [ ] create full usage example
Usage (TODO)
class MyService extends PrivateService {
constructor(name = 'serviceRoleName') {
super(name, dependencyRoleNames);
}
initialize(settings) {
// initialize() for all its dependencies will run first
}
connect() {
// connect() for all its dependencies will run first
}
authenticate() {
// authenticate() for all its dependencies will run first
}
}
@makerdao/services-core
A dependency injection framework used in dai.js.
TODO
- [ ] create full usage example
Usage (TODO)
class MyService extends PrivateService {
constructor(name = 'serviceRoleName') {
super(name, dependencyRoleNames);
}
initialize(settings) {
// initialize() for all its dependencies will run first
}
connect() {
// connect() for all its dependencies will run first
}
authenticate() {
// authenticate() for all its dependencies will run first
}
}