Class EventEnvelope
Event wrapper adding meta data for the events in the result stream of
IEventsByTagQuery query, or similar queries.
The Timestamp is the time the event was stored, in ticks. The value of this property
represents the number of 100-nanosecond intervals that have elapsed since 12:00:00 midnight, January 1, 0001
in the Gregorian calendar (same as `DateTime.Now.Ticks`).
Inheritance
EventEnvelope
Assembly: Akka.Persistence.Query.dll
Syntax
public sealed class EventEnvelope : IEquatable<EventEnvelope>
Constructors
|
Edit this page
View Source
EventEnvelope(Offset, string, long, object)
Declaration
[Obsolete("For binary compatibility with previous releases. Since 1.4.14")]
public EventEnvelope(Offset offset, string persistenceId, long sequenceNr, object @event)
Parameters
|
Edit this page
View Source
EventEnvelope(Offset, string, long, object, long)
Declaration
[Obsolete("For binary compatibility with previous releases. Since 1.5.11")]
public EventEnvelope(Offset offset, string persistenceId, long sequenceNr, object @event, long timestamp)
Parameters
|
Edit this page
View Source
EventEnvelope(Offset, string, long, object, long, string[])
Declaration
public EventEnvelope(Offset offset, string persistenceId, long sequenceNr, object @event, long timestamp, string[] tags)
Parameters
Properties
|
Edit this page
View Source
Event
Declaration
public object Event { get; }
Property Value
|
Edit this page
View Source
Offset
Declaration
public Offset Offset { get; }
Property Value
|
Edit this page
View Source
PersistenceId
Declaration
public string PersistenceId { get; }
Property Value
|
Edit this page
View Source
SequenceNr
Declaration
public long SequenceNr { get; }
Property Value
|
Edit this page
View Source
Declaration
public string[] Tags { get; }
Property Value
|
Edit this page
View Source
Timestamp
Declaration
public long Timestamp { get; }
Property Value
Methods
|
Edit this page
View Source
Equals(EventEnvelope?)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(EventEnvelope? other)
Parameters
| Type |
Name |
Description |
| EventEnvelope |
other |
An object to compare with this object.
|
Returns
| Type |
Description |
| bool |
true if the current object is equal to the other parameter; otherwise, false.
|
|
Edit this page
View Source
Equals(object?)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
The object to compare with the current object.
|
Returns
| Type |
Description |
| bool |
true if the specified object is equal to the current object; otherwise, false.
|
Overrides
|
Edit this page
View Source
GetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
| Type |
Description |
| int |
A hash code for the current object.
|
Overrides
|
Edit this page
View Source
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
| Type |
Description |
| string |
A string that represents the current object.
|
Overrides
Implements
Extension Methods