forked from p15670423/monkey
Common: Add register_common_agent_event_serializers()
This commit is contained in:
parent
ad01003480
commit
5905d3bf5b
|
@ -1,3 +1,4 @@
|
|||
from .i_event_serializer import IEventSerializer, JSONSerializable
|
||||
from .event_serializer_registry import EventSerializerRegistry
|
||||
from .pydantic_event_serializer import PydanticEventSerializer
|
||||
from .register import register_common_agent_event_serializers
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
from common.events import CredentialsStolenEvent
|
||||
|
||||
from . import EventSerializerRegistry, PydanticEventSerializer
|
||||
|
||||
|
||||
def register_common_agent_event_serializers(event_serializer_registry: EventSerializerRegistry):
|
||||
event_serializer_registry[CredentialsStolenEvent] = PydanticEventSerializer(
|
||||
CredentialsStolenEvent
|
||||
)
|
Loading…
Reference in New Issue