private IDataStudioSchema GetSchema(GetDataPipelineArgs args)
        {
            var getSchemaArgs = new GetSchemaPipelineArgs
            {
                Request = args.Request
            };

            GetSchemaPipeline.Run(getSchemaArgs);

            return(getSchemaArgs.Result);
        }
Example #2
0
        public IHttpActionResult GetSchema([ModelBinder(typeof(DataStudioConnectorRequestModelBinder))] DataStudioConnectorRequest request)
        {
            Log.Debug($"[DataStudioConnector] GetSchema() Request \n{JObject.FromObject(request)}\n", this);

            var args = new GetSchemaPipelineArgs
            {
                Request = request
            };

            GetSchemaPipeline.Run(args);

            Log.Debug($"[DataStudioConnector] GetSchema() Response \n{JObject.FromObject(args.Result)}\n", this);

            return(Ok(args.Result));
        }