Esempio n. 1
0
        public async Task Consume(ConsumeContext <ICreateThing> context)
        {
            var thing = new Thing
            {
                Name = context.Message.Name
            };

            await _thingService.CreateAsync(thing);

            _logger.LogInformation("Successfully handled CreateThing Command for thing.Id={thingId}, thing.Name={thingNmae}", thing.Id, thing.Name);
        }