Table of Contents

ToByteArray Method

Definition

Namespace
Savvyio.Extensions.EFCore.Domain.EventSourcing
Assemblies
Savvyio.Extensions.EFCore.Domain.EventSourcing.dll
Source
src/Savvyio.Extensions.EFCore.Domain.EventSourcing/TracedDomainEventExtensions.cs

ToByteArray(ITracedDomainEvent, IMarshaller)

Converts the specified domainEvent into an array of bytes.

public static byte[] ToByteArray(this ITracedDomainEvent domainEvent, IMarshaller marshaller)

Parameters

domainEvent ITracedDomainEvent

The domain event to convert.

marshaller IMarshaller

The IMarshaller that is used when converting ITracedDomainEvent into an array of bytes.

Returns

byte[]

A byte[] that is equivalent to domainEvent.