Created
December 22, 2019 19:13
-
-
Save TimVosch/8836d1f2b510f00c6ebca32b3c184240 to your computer and use it in GitHub Desktop.
Service nesting and dependencies
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Load internal services | |
| */ | |
| loadServices(): void { | |
| this.sourceTypeService = new SourceTypeService(this.sourceTypeRepo); | |
| this.deviceTypeService = new DeviceTypeService(this.deviceTypeRepo); | |
| this.locationService = new LocationService(this.locationRepo); | |
| // | |
| this.sourceService = new SourceService( | |
| this.sourceRepo, | |
| this.sourceTypeService, | |
| ); | |
| // | |
| this.deviceService = new DeviceService( | |
| this.deviceRepo, | |
| this.deviceTypeService, | |
| this.sourceService, | |
| this.locationService | |
| ); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment