Exemplo n.º 1
0
 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();
 }
Exemplo n.º 2
0
 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);
Exemplo n.º 6
0
 public static Confirmer ConfirmerFor(IProjectable projectable, IProjectionControl control)
 => new Confirmer(() => control.ConfirmProjected(projectable.ProjectionId));
Exemplo n.º 7
0
 public void ProjectWith(IProjectable projectable, IProjectionControl control) =>
 Access.WriteUsing("projections", 1, projectable.DataId);
Exemplo n.º 8
0
 public Confirmer ConfirmerFor(IProjectable projectable, IProjectionControl control) => ProjectionControl.ConfirmerFor(projectable, control);
Exemplo n.º 9
0
 public MultiConfirmingProjectionControlActor(IProjectionControl projectionControl, long expiration)
 {
     _projectionControl = projectionControl;
     _confirmables      = new Dictionary <string, Confirmable>();
     _expiration        = expiration;
 }