I just could not get ArcHydro tool to work using ArcGIS Pro SDK. The following is a block of my code. Any hep will be greatly appreciated.
string sIputRaster = @C:\Support\ESRI_LocalGovernment.gdb\FiveMeterSurface;
string sRaterPath = @C:\Support\Fill.tif;
var parameters = Geoprocessing.MakeValueArray(sIputRaster, sRaterPath);
var cts = new CancellationTokenSource();
var results = await Geoprocessing.ExecuteToolAsync("Fill", parameters, null, cts.Token,
(eventName, o) =>
{
}, GPExecuteToolFlags.None);
if (results.IsFailed)
{
MessageBox.Show("Failed to create fill layer. Error " + results.ErrorCode);
return;
}