|
|
@ -33,7 +33,7 @@ namespace Squidex.Infrastructure.EventSourcing |
|
|
|
|
|
|
|
|
public Envelope<TOther> To<TOther>() where TOther : class, IEvent |
|
|
public Envelope<TOther> To<TOther>() where TOther : class, IEvent |
|
|
{ |
|
|
{ |
|
|
return new Envelope<TOther>((payload as TOther)!, headers.Clone()); |
|
|
return new Envelope<TOther>((payload as TOther)!, headers.CloneHeaders()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public static implicit operator Envelope<IEvent>(Envelope<T> source) |
|
|
public static implicit operator Envelope<IEvent>(Envelope<T> source) |
|
|
|