Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@c2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7 # v5
with:
dotnet-version: 8
dotnet-version: 9

- name: Build
run: dotnet build
Expand Down
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<Nullable>enable</Nullable>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<RepositoryUrl>https://github.com/temporalio/samples-dotnet</RepositoryUrl>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<Version>0.1.0</Version>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This is the set of .NET samples for the [.NET SDK](https://github.com/temporalio

Prerequisites:

* .NET 8
* .NET 9
* [Local Temporal server running](https://learn.temporal.io/getting_started/dotnet/dev_environment/)

## Samples
Expand Down
708 changes: 0 additions & 708 deletions TemporalioSamples.sln

This file was deleted.

69 changes: 69 additions & 0 deletions TemporalioSamples.slnx
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
<Solution>
<Configurations>
<Platform Name="Any CPU" />
<Platform Name="x64" />
<Platform Name="x86" />
</Configurations>
<Folder Name="/src/">
<Project Path="src/ActivityHeartbeatingCancellation/TemporalioSamples.ActivityHeartbeatingCancellation.csproj" />
<Project Path="src/ActivitySimple/TemporalioSamples.ActivitySimple.csproj" />
<Project Path="src/ActivityWorker/TemporalioSamples.ActivityWorker.csproj" />
<Project Path="src/ClientMtls/TemporalioSamples.ClientMtls.csproj" />
<Project Path="src/ContextPropagation/TemporalioSamples.ContextPropagation.csproj" />
<Project Path="src/CounterInterceptor/TemporalioSamples.CounterInterceptor.csproj" />
<Project Path="src/DependencyInjection/TemporalioSamples.DependencyInjection.csproj" />
<Project Path="src/Dsl/TemporalioSamples.Dsl.csproj" />
<Project Path="src/EagerWorkflowStart/TemporalioSamples.EagerWorkflowStart.csproj" />
<Project Path="src/EnvConfig/TemporalioSamples.EnvConfig.csproj" />
<Project Path="src/Mutex/TemporalioSamples.Mutex.csproj" />
<Project Path="src/Patching/TemporalioSamples.Patching.csproj" />
<Project Path="src/SafeMessageHandlers/TemporalioSamples.SafeMessageHandlers.csproj" />
<Project Path="src/Saga/TemporalioSamples.Saga.csproj" />
<Project Path="src/Schedules/TemporalioSamples.Schedules.csproj" />
<Project Path="src/SignalsQueries/TemporalioSamples.SignalsQueries.csproj" />
<Project Path="src/SleepForDays/TemporalioSamples.SleepForDays.csproj" />
<Project Path="src/StandaloneActivity/TemporalioSamples.StandaloneActivity.csproj" />
<Project Path="src/Timer/TemporalioSamples.Timer.csproj" />
<Project Path="src/UpdatableTimer/TemporalioSamples.UpdatableTimer.csproj" />
<Project Path="src/UpdateWithStartEarlyReturn/TemporalioSamples.UpdateWithStartEarlyReturn.csproj" />
<Project Path="src/UpdateWithStartLazyInit/TemporalioSamples.UpdateWithStartLazyInit.csproj" />
<Project Path="src/WorkerSpecificTaskQueues/TemporalioSamples.WorkerSpecificTaskQueues.csproj" />
<Project Path="src/WorkerVersioning/TemporalioSamples.WorkerVersioning.csproj" />
<Project Path="src/WorkflowUpdate/TemporalioSamples.WorkflowUpdate.csproj" />
</Folder>
<Folder Name="/src/AspNet/">
<Project Path="src/AspNet/Web/TemporalioSamples.AspNet.Web.csproj" />
<Project Path="src/AspNet/Worker/TemporalioSamples.AspNet.Worker.csproj" />
</Folder>
<Folder Name="/src/Bedrock/">
<Project Path="src/Bedrock/Basic/TemporalioSamples.Bedrock.Basic.csproj" />
<Project Path="src/Bedrock/Entity/TemporalioSamples.Bedrock.Entity.csproj" />
<Project Path="src/Bedrock/SignalsAndQueries/TemporalioSamples.Bedrock.SignalsAndQueries.csproj" />
</Folder>
<Folder Name="/src/Encryption/">
<Project Path="src/Encryption/Codec/TemporalioSamples.Encryption.Codec.csproj" />
<Project Path="src/Encryption/CodecServer/TemporalioSamples.Encryption.CodecServer.csproj" />
<Project Path="src/Encryption/Starter/TemporalioSamples.Encryption.Starter.csproj" />
<Project Path="src/Encryption/Worker/TemporalioSamples.Encryption.Worker.csproj" />
</Folder>
<Folder Name="/src/NexusCancellation/">
<Project Path="src/NexusCancellation/TemporalioSamples.NexusCancellation.csproj" />
</Folder>
<Folder Name="/src/NexusContextPropagation/">
<Project Path="src/NexusContextPropagation/TemporalioSamples.NexusContextPropagation.csproj" />
</Folder>
<Folder Name="/src/NexusMultiArg/">
<Project Path="src/NexusMultiArg/TemporalioSamples.NexusMultiArg.csproj" />
</Folder>
<Folder Name="/src/NexusSimple/">
<Project Path="src/NexusSimple/TemporalioSamples.NexusSimple.csproj" />
</Folder>
<Folder Name="/src/Polling/">
<Project Path="src/Polling/Frequent/TemporalioSamples.Polling.Frequent.csproj" />
<Project Path="src/Polling/Infrequent/TemporalioSamples.Polling.Infrequent.csproj" />
<Project Path="src/Polling/PeriodicSequence/TemporalioSamples.Polling.PeriodicSequence.csproj" />
</Folder>
<Project Path="src/OpenTelemetry/CoreSdkForwarding/TemporalioSamples.OpenTelemetry.CoreSdkForwarding.csproj" />
<Project Path="src/OpenTelemetry/DotNetMetrics/TemporalioSamples.OpenTelemetry.DotNetMetrics.csproj" />
<Project Path="tests/TemporalioSamples.Tests.csproj" />
</Solution>
2 changes: 1 addition & 1 deletion src/Mutex/Impl/MutexActivities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public async Task SignalWithStartMutexWorkflowAsync(SignalWithStartMutexWorkflow
var activityInfo = ActivityExecutionContext.Current.Info;
var workflowId = activityInfo.IsWorkflowActivity ? activityInfo.WorkflowId! : throw new InvalidOperationException("Activity must be invoked from a workflow");

await this.client.StartWorkflowAsync(
await client.StartWorkflowAsync(
(MutexWorkflow mw) => mw.RunAsync(MutexWorkflowInput.Empty),
new WorkflowOptions(input.MutexWorkflowId, activityInfo.TaskQueue)
{
Expand Down
2 changes: 1 addition & 1 deletion tests/TemporalioSamples.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="coverlet.collector" Version="3.1.2" />
<PackageReference Include="coverlet.collector" Version="8.0.1" PrivateAssets="all" IncludeAssets="runtime; build; native; contentfiles; analyzers; buildtransitive" />
<PackageReference Include="MartinCostello.Logging.XUnit" Version="0.3.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="6.0.0" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="8.0.1" />
Expand Down