public void ProjectWith(IProjectable projectable, IProjectionControl control) { foreach (var entry in projectable.Entries) { switch (entry.Typed.Name) { case "OneHappened": _accessHolder.AccessProjection.WriteUsing(AccessProjection, 1); ProjectionControl.ConfirmerFor(projectable, control).Confirm(); Logger.Debug("ONE"); break; } } ProjectionControl.ConfirmerFor(projectable, control).Confirm(); }
public void ProjectWith(IProjectable projectable, IProjectionControl control) { if (!actor.IsStopped) { Action <IProjection> cons1613435108 = __ => __.ProjectWith(projectable, control); if (mailbox.IsPreallocated) { mailbox.Send(actor, cons1613435108, null, ProjectWithRepresentation1); } else { mailbox.Send(new LocalMessage <IProjection>(actor, cons1613435108, ProjectWithRepresentation1)); } } else { actor.DeadLetters?.FailedDelivery(new DeadLetter(actor, ProjectWithRepresentation1)); } }
public Confirmer ConfirmerFor(IProjectable projectable, IProjectionControl control) { if (!actor.IsStopped) { Action <IProjectionControl> cons609358827 = __ => __.ConfirmerFor(projectable, control); if (mailbox.IsPreallocated) { mailbox.Send(actor, cons609358827, null, ConfirmerForRepresentation1); } else { mailbox.Send( new LocalMessage <IProjectionControl>(actor, cons609358827, ConfirmerForRepresentation1)); } } else { actor.DeadLetters?.FailedDelivery(new DeadLetter(actor, ConfirmerForRepresentation1)); } return(null); }
public void ProjectWith(IProjectable projectable, IProjectionControl control) => UpsertFor(projectable, control);
public void ProjectWith(IProjectable projectable, IProjectionControl control) => control.ConfirmProjected(projectable.ProjectionId);
public static Confirmer ConfirmerFor(IProjectable projectable, IProjectionControl control) => new Confirmer(() => control.ConfirmProjected(projectable.ProjectionId));
public void ProjectWith(IProjectable projectable, IProjectionControl control) => Access.WriteUsing("projections", 1, projectable.DataId);
public Confirmer ConfirmerFor(IProjectable projectable, IProjectionControl control) => ProjectionControl.ConfirmerFor(projectable, control);
public MultiConfirmingProjectionControlActor(IProjectionControl projectionControl, long expiration) { _projectionControl = projectionControl; _confirmables = new Dictionary <string, Confirmable>(); _expiration = expiration; }