public CommitSynchroniser( ISynchronisationHttpClient synchronisationHttpClient, SynchronisationServerUriProvider serverUriProvider, SynchronisableCommitSynchroniser synchronisableCommitSynchroniser, SynchronisableCommitBuilder synchronisableCommitBuilder, ILocalMachine localMachine) { this.synchronisationHttpClient = synchronisationHttpClient; this.serverUriProvider = serverUriProvider; this.synchronisableCommitSynchroniser = synchronisableCommitSynchroniser; this.synchronisableCommitBuilder = synchronisableCommitBuilder; this.localMachine = localMachine; }
public static EventOriginHeader ForMachine(ILocalMachine localMachine) { return(new EventOriginHeader { MachineName = localMachine.GetName() }); }
public DomainRepository(IEventSessionFactory eventSessionFactory, ILocalMachine localMachine) { this.eventSessionFactory = eventSessionFactory; this.localMachine = localMachine; }
public static void StoreEvent <TEvent>(this IEventSession session, Action <TEvent> eventIntialiser, EventStreamId id, ILocalMachine localMachine) where TEvent : new() { var @event = new TEvent(); eventIntialiser(@event); session.StoreEvent(@event, id, localMachine); }
public static void StoreEventAndCommit <TEvent>(this IEventSession session, TEvent @event, EventStreamId id, ILocalMachine localMachine) where TEvent : new() { session.StoreEvent(@event, id, localMachine); session.Commit(Guid.NewGuid()); }
public static void StoreEvent <TEvent>(this IEventSession session, TEvent @event, EventStreamId id, ILocalMachine localMachine) where TEvent : new() { session.StoreEvent(new SourcedEvent { Body = @event }, id); session.StoreHeader(id, EventOriginHeader.Key, EventOriginHeader.ForMachine(localMachine)); }
public CommitQueryHandler(SynchronisableCommitBuilder builder, ILocalMachine localMachine) { this.builder = builder; this.localMachine = localMachine; }
protected StoreAndCommitEventCommandHandler(IEventSessionFactory eventSessionFactory, ILocalMachine localMachine) { this.eventSessionFactory = eventSessionFactory; this.localMachine = localMachine; }
public StoreAndCommitTestCommandHandler(IEventSessionFactory eventSessionFactory, ILocalMachine localMachine) : base(eventSessionFactory, localMachine) { }