Class TracedDomainEventExtensions
- Namespace
- Savvyio.Extensions.EFCore.Domain.EventSourcing
- Assembly
- Savvyio.Extensions.EFCore.Domain.EventSourcing.dll
Extension methods for the ITracedDomainEvent interface.
public static class TracedDomainEventExtensions
- Inheritance
-
TracedDomainEventExtensions
Methods
ToByteArray(ITracedDomainEvent, IMarshaller)
Converts the specified domainEvent into an array of bytes.
public static byte[] ToByteArray(this ITracedDomainEvent domainEvent, IMarshaller marshaller)
Parameters
domainEventITracedDomainEventThe domain event to convert.
marshallerIMarshallerThe IMarshaller that is used when converting ITracedDomainEvent into an array of bytes.
Returns
- byte[]
A byte[] that is equivalent to
domainEvent.