dasiths / NEventLite_Legacy

Legacy version of NEventLite for archive purposes
http://dasith.me
2 stars 1 forks source link

It looks like the source code is not aligned with the latest version based on full .NET framework #1

Open risogolo opened 7 years ago

risogolo commented 7 years ago

Can you please keep it updated. Just trying to understand the implementation, I need to port it to .NET Core, also planning to create provider for elastic search, so far I don't understand if the Eventstore (https://geteventstore.com/) is necessary ? or how can be replaced with custom implementation.

dasiths commented 7 years ago

Yes I haven't updated this. Will do it over the weekend.

dasiths commented 7 years ago

This repo is the .net core version already. No need to port it. The .net framework version is at https://github.com/dasiths/NEventLite

I will update it first and then port it to this repo as I find time. See how IEventStorageProvider is implemented if you want to use a different provider. GetEventStore is optional. public interface IEventStorageProvider { Task<IEnumerable> GetEventsAsync(Type aggregateType, Guid aggregateId, int start, int count); Task GetLastEventAsync(Type aggregateType, Guid aggregateId); Task CommitChangesAsync(AggregateRoot aggregate); }

public interface ISnapshotStorageProvider
{
    int SnapshotFrequency { get; }
    Task<Snapshot.Snapshot> GetSnapshotAsync(Type aggregateType, Guid aggregateId);
    Task SaveSnapshotAsync(Type aggregateType, Snapshot.Snapshot snapshot);
}
risogolo commented 7 years ago

Yes, but Storage providers were not ported, so I'm trying to port them, also I have a need to use Elasticsearch, so If I get "go", I will try to create new provider for Elasticsearch for either EventStorage and SnapshotStorage

dasiths commented 7 years ago

Cool. You can certainly give it a go. Fork and then create a pull request once done. Thanks.