docs: def app_state(self):
          """Current service state in current application.
  
          :raise:RuntimeError if working outside application context.
          """
          try:
              return current_app.extensions[self.name]
          except KeyError:
              raise ServiceNotRegistered(self.name)