Tag: event sourcing

EventStore + RavenDB,没有反序列化正确

尝试使用RavenDB的JOliver CommonDoman / EventStore 3.0,它可以很好地存储事件,但是当尝试使用IRepository.GetById()加载聚合根时,反序列化会出现问题。 给出错误消息“无法将类型为’Raven.Abstractions.Linq.DynamicList’的对象’转换为’System.Collections.Generic.List`1 [EventStore.EventMessage]’。” 在DocumentObjectSerializer.cs, public T Deserialize(object document) { Logger.Verbose(Messages.DeserializingStream, typeof(T)); return (T)document; } 其中T是List 我用来获取文档的代码是这样的: var r = _repository.GetById(command.Id); //where _repository is CommonDomain.Persistence.EventStore.EventStoreRepository //the EventStore wire up is, return Wireup.Init() .UsingRavenPersistence(“RavenDB”) .UsingSynchronousDispatchScheduler(bus) .Build();

处理聚合的所有事件

请参阅下面的第一个永久订阅: namespace PersistentSubscription { internal class Program { private static void Main() { var subscription = new PersistentSubscriptionClient(); subscription.Start(); } } public class PersistentSubscriptionClient { private IEventStoreConnection _conn; private const string STREAM = “$ce-customer”; private const string GROUP = “a_test_group”; private const int DEFAULTPORT = 1113; private static readonly UserCredentials User = new UserCredentials(“admin”, “changeit”); […]

活动采购资源

寻找有关活动采购主题的有用讨论组,文章,成功案例,参考应用程序和工具(.Net)的一些建议。 我已经熟悉了: 福勒的文章: http : //martinfowler.com/eaaDev/EventSourcing.html Greg Young的文章(评论中已下载的文档): http : //codebetter.com/gregyoung/2010/02/20/why-use-event-sourcing/ Greg Young关于DDDD的优秀(草案)文章: http : //abdullin.com/storage/uploads/2010/04/2010-04-16_DDDD_Drafts_by_Greg_Young.pdf 还有什么我应该读书看的吗?