23 lines
711 B
C++
23 lines
711 B
C++
#pragma once
|
|
|
|
#include "ddkit/actors/ActorInfo.hpp"
|
|
|
|
|
|
namespace ddkit {
|
|
namespace actors {
|
|
|
|
/// @brief an ActorInfoDb must know about those services, which are 'important',
|
|
/// - that is: services local to the session, in/for which the actorInfoDb works.
|
|
/// - if some service is recognized twice in the network (normally a warning), and the local session is accountable
|
|
/// for it, the local process must die
|
|
/// so a session creating an ActorInfoDb must provide a function for up-to-date-knowledge about the local services
|
|
class ILocalServices {
|
|
|
|
public:
|
|
virtual bool isLocalService(ActorConfiguration config) = 0;
|
|
virtual ~ILocalServices() = default;
|
|
};
|
|
|
|
} // namespace actors
|
|
} // namespace ddkit
|