Search Results for

    Show / Hide Table of Contents

    Class InMemoryEventStorageRecord

    Inheritance
    object
    InMemoryEventStorageRecord
    Implements
    IEventStorageRecord
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: FastEndpoints
    Assembly: FastEndpoints.Messaging.Remote.Core.dll
    Syntax
    public sealed class InMemoryEventStorageRecord : IEventStorageRecord

    Properties

    Event

    the actual event object that will be embedded in the storage record. if your database/orm (such as ef-core) doesn't support embedding objects, you can take the following steps:

    1. add a [NotMapped] attribute to this property.
    2. add a new property, either a string or  array
    3. implement both  and  to serialize/deserialize the event object back and forth and store it in the newly added property.

    you may use any serializer you please. recommendation is to use MessagePack.

    Declaration
    public object Event { get; set; }
    Property Value
    Type Description
    object

    EventType

    the full type name of the event

    Declaration
    public string EventType { get; set; }
    Property Value
    Type Description
    string

    ExpireOn

    the expiration date/time of the event. this is used to purge stale records. default value is 4 hours from time of creation.

    Declaration
    public DateTime ExpireOn { get; set; }
    Property Value
    Type Description
    DateTime

    IsComplete

    pending status of the event. will only return true if the event has been successfully processed and is ready to be discarded.

    Declaration
    public bool IsComplete { get; set; }
    Property Value
    Type Description
    bool

    QueueOverflowed

    Declaration
    public bool QueueOverflowed { get; set; }
    Property Value
    Type Description
    bool

    SubscriberID

    a subscriber id is a unique identifier of an event stream subscriber on a remote node. it is a unique id per each event handler type (TEvent+TEventHandler combo). you don't have to worry about generating this as it will automatically be set by the library.

    Declaration
    public string SubscriberID { get; set; }
    Property Value
    Type Description
    string

    Implements

    IEventStorageRecord
    In this article
    Back to top Developed by Đĵ ΝιΓΞΗΛψΚ and contributors / Licensed under MIT / Website generated by DocFX