From 2d429379d65ec3401ee4fa24407241f68ff91087 Mon Sep 17 00:00:00 2001 From: Connor Ivy Date: Fri, 28 Jun 2024 16:26:47 -0500 Subject: [PATCH] fix build errors --- .../Bindings/RevitReceiveBinding.cs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/DUI3-DX/Connectors/Revit/Speckle.Connectors.RevitShared/Bindings/RevitReceiveBinding.cs b/DUI3-DX/Connectors/Revit/Speckle.Connectors.RevitShared/Bindings/RevitReceiveBinding.cs index 7e66ea04bd..77119f01a0 100644 --- a/DUI3-DX/Connectors/Revit/Speckle.Connectors.RevitShared/Bindings/RevitReceiveBinding.cs +++ b/DUI3-DX/Connectors/Revit/Speckle.Connectors.RevitShared/Bindings/RevitReceiveBinding.cs @@ -60,7 +60,8 @@ public async Task Receive(string modelCardId) modelCard.ModelName.NotNull(), modelCard.SelectedVersionId.NotNull(), cts.Token, - (status, progress) => OnSendOperationProgress(modelCardId, status, progress) + (status, progress) => + Commands.SetModelProgress(modelCardId, new ModelCardProgress(modelCardId, status, progress), cts) ) .ConfigureAwait(false); @@ -78,11 +79,4 @@ public async Task Receive(string modelCardId) return; } } - - private void OnSendOperationProgress(string modelCardId, string status, double? progress) - { - Commands.SetModelProgress(modelCardId, new ModelCardProgress(modelCardId, status, progress)); - } - - public void CancelSend(string modelCardId) => _cancellationManager.CancelOperation(modelCardId); }