pub fn register(
router: &mut Router,
registry: Arc<SessionRegistry>,
workstreams: SharedWorkstreamStore,
)Expand description
Register every session.* method onto router, all sharing registry.
Why: the one place that lists the full session.* surface — mirrors
crate::serve::methods::register’s role for the proof-of-life methods.
What: clones registry once per method (cheap — Arc) into a small
adapter closure that forwards to the corresponding free function below.
Test: protocol::tests::register_wires_every_session_method.
(Issue #3298) workstreams is the daemon’s shared workstream store —
session.create resolves and persists the session’s binding (explicit
workstream_id param, or DOC-48 §4.2’s ambient active-workstream
default) through it before returning.