Пример #1
0
        // GET http://.../JsonProxy/getSchema?uri=dmitrov-uri
        public SerializableDataSetSchema Get(string uri)
        {
            traceSource.TraceEvent(TraceEventType.Information, 1, string.Format("Request for JSON schema of dataset {0}", uri));

            SerializableDataSetSchema result = null;

            if (!String.IsNullOrEmpty(uri))
            {
                var ds = new AzureBlobDataSet(uri);
                result = ConvUtils.GetSerializableSchema(ds);
            }

            if (result == null)
            {
                throw new HttpResponseException(HttpStatusCode.InternalServerError);
            }

            return(result);
        }