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); })); }
public void On(AppPlanChanged @event, EnvelopeHeaders headers) { UpdateApp(@event, headers, a => { SimpleMapper.Map(@event, a); }); }
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))); }
protected void On(AppPlanChanged @event) { plan = string.IsNullOrWhiteSpace(@event.PlanId) ? null : new AppPlan(@event.Actor, @event.PlanId); }
protected void On(AppPlanChanged @event) { Plan = AppPlan.Build(@event.Actor, @event.PlanId); }
protected void On(AppPlanChanged @event) { Plan = @event.PlanId == null ? null : new AppPlan(@event.Actor, @event.PlanId); }
protected void On(AppPlanChanged @event) { planId = @event.PlanId; planOwner = string.IsNullOrWhiteSpace(planId) ? null : @event.Actor; }