Esempio n. 1
0
        public async Task <GeneratedService.ProductJson> GetProductAsync(
            [Service] ITopicEventSender eventSender, [Service] ProductClient service, CancellationToken cancellationToken, int id)
        {
            ProductJson product = await service.GetFullProductsByIdAsync(id, cancellationToken);

            await eventSender.SendAsync(nameof(SubscriptionObjectType.SubscribeProductGetDate), product, cancellationToken);

            return(product);
        }