Skip to content

Commit 0012b53

Browse files
committed
compile fix
1 parent 44252eb commit 0012b53

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/ExportHistory/Activities/ExportInstanceHistoryActivity.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public override async Task<ExportResult> RunAsync(TaskActivityContext context, E
7979

8080
// Stream all history events
8181
this.logger.LogInformation("Streaming history events for instance {InstanceId}", instanceId);
82-
List<HistoryEvent> historyEvents = this.client.GetOrchestrationHistoryAsync(instanceId, CancellationToken.None);
82+
IList<HistoryEvent> historyEvents = await this.client.GetOrchestrationHistoryAsync(instanceId, CancellationToken.None);
8383

8484
this.logger.LogInformation(
8585
"Retrieved {EventCount} history events for instance {InstanceId}",
@@ -158,7 +158,7 @@ static string GetFileExtension(ExportFormat format)
158158
}
159159

160160
static string SerializeInstanceData(
161-
List<HistoryEvent> historyEvents,
161+
IList<HistoryEvent> historyEvents,
162162
ExportFormat format)
163163
{
164164
JsonSerializerOptions serializerOptions = new JsonSerializerOptions

test/ExportHistory.Tests/ExportHistory.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Project Sdk="Microsoft.NET.Sdk">
33

44
<PropertyGroup>
5-
<TargetFramework>net6.0</TargetFramework>
5+
<TargetFramework>net10.0</TargetFramework>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>
88
<IsPackable>false</IsPackable>

0 commit comments

Comments
 (0)