def service(service_name):
    """
    Decorator to mark a class as an OpenADR Service for a specific endpoint.
    """
    def _actual_decorator(decorated_function):
        decorated_function.__service_name__ = service_name
        return decorated_function
    return _actual_decorator