addService method

void addService(
  1. dynamic serviceInstance
)

Implementation

void addService(dynamic serviceInstance) {
  var rsocketServiceAnnotation = getRSocketServiceAnnotation(serviceInstance);
  if (rsocketServiceAnnotation != null) {
    serviceInstances[rsocketServiceAnnotation.name] = serviceInstance;
    instanceMirrors[rsocketServiceAnnotation.name] = reflect(serviceInstance);
  }
}