update to new speckle core dependencies
This commit is contained in:
+9
-4
@@ -2,7 +2,6 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Newtonsoft.Json.Schema.Generation;
|
||||
using Newtonsoft.Json.Serialization;
|
||||
using Objects.Geometry;
|
||||
using Speckle.Newtonsoft.Json;
|
||||
|
||||
namespace SpeckleAutomateDotnetExample;
|
||||
@@ -57,14 +56,20 @@ internal static class Program
|
||||
string speckleToken
|
||||
)
|
||||
{
|
||||
var p = new Point();
|
||||
var speckleProjectData = JsonConvert.DeserializeObject<SpeckleProjectData>(
|
||||
rawSpeckleProjectData
|
||||
);
|
||||
var functionInputs = JsonConvert.DeserializeObject<FunctionInputs>(
|
||||
rawFunctionInputs
|
||||
);
|
||||
await AutomateFunction.Run(speckleProjectData, functionInputs, speckleToken);
|
||||
var count = await AutomateFunction.Run(
|
||||
speckleProjectData,
|
||||
functionInputs,
|
||||
speckleToken
|
||||
);
|
||||
Console.WriteLine(
|
||||
$"Found {count} elements that have the type {functionInputs.SpeckleTypeToCount}"
|
||||
);
|
||||
}
|
||||
|
||||
static string GenerateFunctionInputSchema()
|
||||
@@ -93,4 +98,4 @@ internal class SpeckleProjectData
|
||||
public string ModelId;
|
||||
public string VersionId;
|
||||
public string SpeckleServerUrl;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user