async fn wire(self, _input: Self::Input) -> Result<Self::Output, WiringError> {
        let database = Arc::new(MemoryDatabase {
            data: Arc::new(Mutex::new(HashMap::new())),
        });
        // We add the resource to the service context. This way it will be available for the tasks.
        Ok(DatabaseLayerOutput {
            db: DatabaseResource(database),
        })
    }
`wire` method will be invoked by the service before the tasks are started.
core/lib/node_framework/examples/showcase.rs