コード例 #1
0
        public async Task Handle(Events.DescriptionChanged e, IMessageHandlerContext ctx)
        {
            var campaign = await ctx.UoW().Get <Models.Campaign>(e.CampaignId)
                           .ConfigureAwait(false);

            campaign.Description = e.Description;

            await ctx.UoW().Update(e.CampaignId, campaign).ConfigureAwait(false);
        }
コード例 #2
0
 private void Handle(Events.DescriptionChanged e)
 {
     this.Description = new ValueObjects.Description(e.Description);
 }
コード例 #3
0
 private void Handle(Events.DescriptionChanged e)
 {
     this.Description = e.Description;
 }