Skip to content

Commit e01360a

Browse files
authored
mark version received (#419)
1 parent 2494b16 commit e01360a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Speckle.Automate.Sdk/AutomationContext.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public async Task<Base> ReceiveVersion(CancellationToken cancellationToken = def
6363
);
6464
}
6565

66-
Base? rootObject = await operations
66+
Base rootObject = await operations
6767
.Receive2(
6868
SpeckleClient.ServerUrl,
6969
AutomationRunData.ProjectId,
@@ -74,6 +74,10 @@ public async Task<Base> ReceiveVersion(CancellationToken cancellationToken = def
7474
)
7575
.ConfigureAwait(false);
7676

77+
await SpeckleClient
78+
.Version.Received(new(version.id, AutomationRunData.ProjectId, "automate_function"), cancellationToken)
79+
.ConfigureAwait(false);
80+
7781
Console.WriteLine($"It took {Elapsed.TotalSeconds} seconds to receive the speckle version {versionId}");
7882
return rootObject;
7983
}

0 commit comments

Comments
 (0)