コード例 #1
0
ファイル: Agent.cs プロジェクト: shibly77/leadsplus
        public void UpdateMailbox(string newMailbox)
        {
            var agentMailboxUpdatedEvent = new AgentMailboxUpdatedEvent()
            {
                Agent = this
            };

            this.AddDomainEvent(agentMailboxUpdatedEvent);
        }
コード例 #2
0
        public async Task Handle(AgentMailboxUpdatedEvent agentMailboxUpdatedEvent, CancellationToken cancellationToken)
        {
            await Processor(agentMailboxUpdatedEvent.Agent);

            logger.CreateLogger(nameof(agentMailboxUpdatedEvent)).LogTrace($"Agent mailbox created for {agentMailboxUpdatedEvent.Agent.Id}.");
        }