function RegisterService(appId, ServiceName) {
  const { emui } = window;
  const props = emui[appId] || (emui[appId] = {});
  if (props.service) {
    delete props.service;
  }
  props.service = new ServiceName();
  return () => {
    delete props.service;
  };
}
export {
  RegisterService
};
