public void CheckoutTest() { var inputs = new CheckoutInputs(5.0, 3.0, "", "", new Dictionary <string, string>(), "", "", ""); var model = Model.FromJson(System.IO.File.ReadAllText("../../../../Departments.json")); var outputs = Checkout.Execute(new Dictionary <string, Model> { { "Departments", model } }, inputs); System.IO.File.WriteAllText("../../../../Checkout.json", outputs.model.ToJson()); outputs.model.ToGlTF("../../../../Checkout.glb"); }
public async Task InvokeFunction() { var store = new FileModelStore <CheckoutInputs>("./", true); // Create an input object with default values. var input = new CheckoutInputs(); // Invoke the function. // The function invocation uses a FileModelStore // which will write the resulting model to disk. // You'll find the model at "./model.gltf" var l = new InvocationWrapper <CheckoutInputs, CheckoutOutputs>(store, Checkout.Execute); var output = await l.InvokeAsync(input); }