I'm having trouble getting the Create Constant Raster GP tool to work using the Pro SDK. Below is a snippet of my code. Could you help me identify what I'm doing wrong? Any assistance would be greatly appreciated.
var parameters = Geoprocessing.MakeValueArray(2.6, @C:\temp\test.tif, "FLOAT", 100.0, pEnp);
var cts = new CancellationTokenSource();
var results = await Geoprocessing.ExecuteToolAsync("CreateConstantRaster_sa", parameters, null, cts.Token,
(eventName, o) =>
{
}, GPExecuteToolFlags.None);