update to new speckle core dependencies

This commit is contained in:
Gergő Jedlicska
2023-08-10 13:46:53 +02:00
parent c48564c04f
commit 72ad134dc4
4 changed files with 23 additions and 23 deletions
+9 -4
View File
@@ -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;
}
}