activate method

void activate()
override

Activate all endpoints that belong to this object adapter. After activation, the object adapter can dispatch requests received through its endpoints.

@see #hold @see #deactivate

Implementation

void activate() {
  state = State.activating;

  if (endpointList.isNotEmpty) {
    bind().then((value) {
      print('ObjectAdapter bind to $endpointList');
      state = State.active;
    });
  }
}