public async Task <IActionResult> Index()
 {
     return(View(await _serviceStore.GetAllAsync()));
 }
 /// <summary>
 /// Get all services
 /// </summary>
 /// <returns></returns>
 public Task <IEnumerable <Service> > GetAllAsync()
 {
     return(_inner.GetAllAsync());
 }
示例#3
0
        /// <summary>
        /// Returns all registered services
        /// </summary>
        /// <returns></returns>
        public async Task <IEnumerable <Service> > GetAllServicesAsync()
        {
            var services = await _store.GetAllAsync();

            return(services.Select(EnsurePublicUrlsExists));
        }