Exemple #1
0
        public async Task Handle(HttpContext context, ConfigServerOptions options)
        {
            if (!CheckMethodAndAuthentication(context, options))
            {
                return;
            }
            var pathParams = context.ToPathParams();

            if (pathParams.Length != 0)
            {
                httpResponseFactory.BuildNotFoundStatusResponse(context);
                return;
            }

            var tags = registry.Select(model => model.RequiredClientTag).Where(model => model != null).Distinct().OrderBy(o => o.Value);
            await httpResponseFactory.BuildJsonResponse(context, tags);

            return;
        }
 private IEnumerable <ConfigurationSetSummary> GetConfigurationSetSummaries()
 {
     return(configCollection.Select(MapToSummary));
 }