Example #1
0
 protected Task On(AppPlanChanged @event, EnvelopeHeaders headers)
 {
     return(UpdateAppAsync(@event, headers, a =>
     {
         a.ChangePlan(@event.PlanId, @event.Actor);
     }));
 }
 protected Task On(AppPlanChanged @event, EnvelopeHeaders headers)
 {
     return(UpdateAppAsync(@event, headers, a =>
     {
         SimpleMapper.Map(@event, a);
     }));
 }
Example #3
0
 public void On(AppPlanChanged @event, EnvelopeHeaders headers)
 {
     UpdateApp(@event, headers, a =>
     {
         SimpleMapper.Map(@event, a);
     });
 }
Example #4
0
 protected Task On(AppPlanChanged @event, EnvelopeHeaders headers)
 {
     return(Collection.UpdateAsync(@event, headers, a =>
     {
         a.PlanOwner = @event.Actor.Identifier;
         a.PlanId = @event.PlanId;
     }));
 }
        protected Task <HistoryEvent> On(AppPlanChanged @event)
        {
            const string channel = "settings.plan";

            return(Task.FromResult(
                       ForEvent(@event, channel)
                       .AddParameter("Plan", @event.PlanId)));
        }
Example #6
0
 protected void On(AppPlanChanged @event)
 {
     plan = string.IsNullOrWhiteSpace(@event.PlanId) ? null : new AppPlan(@event.Actor, @event.PlanId);
 }
Example #7
0
 protected void On(AppPlanChanged @event)
 {
     Plan = AppPlan.Build(@event.Actor, @event.PlanId);
 }
Example #8
0
 protected void On(AppPlanChanged @event)
 {
     Plan = @event.PlanId == null ? null : new AppPlan(@event.Actor, @event.PlanId);
 }
Example #9
0
        protected void On(AppPlanChanged @event)
        {
            planId = @event.PlanId;

            planOwner = string.IsNullOrWhiteSpace(planId) ? null : @event.Actor;
        }