示例#1
0
        public async Task <IEnumerable <CatalogModel> > Get()
        {
            var message = new CatalogUpdated()
            {
                Items = catalogManager.GetAllItems()
            };

            await endpoint.Publish(message)
            .ConfigureAwait(false);

            return(catalogManager.GetAllStock());
        }