Skip to content

Commit 704d3ff

Browse files
committed
Updated read me
1 parent a253d8c commit 704d3ff

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# NEventLite - A lightweight .NET framework for Event Sourcing with support for custom Event and Snapshot Stores (EventStore, Redis, SQL Server or Custom) written in C#.
1+
# NEventLite - A lightweight .NET framework for Event Sourcing with support for custom Event and Snapshot Stores (EventStore, Redis, SQL Server or Custom) written in C#.
22
---------------------------------
33
NEventLite makes it easier to implement the event sourcing pattern in your .NET project. It is opinionated and enforces some patterns. The framework is built with support for custom storage providers and event bus architectures in mind. We also provide some popular event/snapshot storage provider implementations for NEventLite here. Feel free to use it as is or customize it to suit your needs.
44

@@ -87,9 +87,10 @@ Aggregate (Note.cs in example)
8787
ApplyEvent(new NoteTitleChangedEvent(this.Id, this.CurrentVersion, newTitle));
8888
}
8989

90-
//Applying Events
90+
//Applying Events
91+
//Note how the framework identifies the internal event handler methods though a method attribute.
9192
92-
[OnApplyEvent]
93+
[InternalEventHandler]
9394
public void OnNoteCreated(NoteCreatedEvent @event)
9495
{
9596
CreatedDate = @event.createdTime;
@@ -98,7 +99,7 @@ Aggregate (Note.cs in example)
9899
Category = @event.cat;
99100
}
100101

101-
[OnApplyEvent]
102+
[InternalEventHandler]
102103
public void OnTitleChanged(NoteTitleChangedEvent @event)
103104
{
104105
Title = @event.title;

0 commit comments

Comments
 (0)