示例#1
0
        public async Task HandleAsync(SecurityBought @event)
        {
            if (@event == null)
            {
                throw new CustomException("securityBought_event_empty", "Could not buy the security.");
            }

            await service.BuySecuritiesAsync(@event);
        }