From d4dbdbc019cef9e38790ac253504220a19ccd4f7 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 15 Feb 2026 02:57:56 +0000 Subject: [PATCH 1/4] Initial plan From 2accafb6d6d82b2399d822fa15c9ca99709ec77b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 15 Feb 2026 03:00:19 +0000 Subject: [PATCH 2/4] Add dependabot.yml for .NET, Java, Python, JavaScript, GitHub Actions, and Docker Co-authored-by: torosent <17064840+torosent@users.noreply.github.com> --- .github/dependabot.yml | 59 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..8f0e8315 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,59 @@ +# Dependabot configuration file +# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates + +version: 2 +updates: + # .NET (NuGet) + - package-ecosystem: "nuget" + directories: + - "/samples/durable-task-sdks/dotnet/**" + - "/samples/durable-functions/dotnet/**" + - "/samples/scenarios/**" + schedule: + interval: "weekly" + + # Java (Maven) + - package-ecosystem: "maven" + directories: + - "/samples/durable-functions/java/**" + schedule: + interval: "weekly" + + # Java (Gradle) + - package-ecosystem: "gradle" + directories: + - "/samples/durable-task-sdks/java/**" + schedule: + interval: "weekly" + + # Python (pip) + - package-ecosystem: "pip" + directories: + - "/samples/durable-task-sdks/python/**" + - "/samples/durable-functions/python/**" + schedule: + interval: "weekly" + + # JavaScript (npm) + - package-ecosystem: "npm" + directories: + - "/samples/durable-functions/javascript/**" + - "/samples/durable-functions/dotnet/AiAgentTravelPlanOrchestrator/Frontend" + schedule: + interval: "weekly" + + # GitHub Actions + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" + + # Docker + - package-ecosystem: "docker" + directories: + - "/samples/scenarios/AutoscalingInACA/**" + - "/samples/durable-functions/dotnet/HelloCities/.devcontainer" + - "/samples/durable-task-sdks/java/function-chaining" + - "/samples/durable-task-sdks/dotnet/FunctionChaining/**" + schedule: + interval: "weekly" From 1082a813ba42eced867ed6e2d65167eb559c2563 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 15 Feb 2026 04:05:25 +0000 Subject: [PATCH 3/4] Add ignore rules for unpublished Microsoft.DurableTask.Sdk packages in nuget config Co-authored-by: torosent <17064840+torosent@users.noreply.github.com> --- .github/dependabot.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 8f0e8315..4b7d9e62 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -11,6 +11,10 @@ updates: - "/samples/scenarios/**" schedule: interval: "weekly" + ignore: + # These packages are not yet published to nuget.org + - dependency-name: "Microsoft.DurableTask.Sdk" + - dependency-name: "Microsoft.DurableTask.Sdk.Grpc" # Java (Maven) - package-ecosystem: "maven" From 8a84609f30a1be818aed8b5902472b51827db993 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 15 Feb 2026 04:19:00 +0000 Subject: [PATCH 4/4] Fix OpenTelemetryTracing sample to use correct NuGet packages and API patterns Co-authored-by: torosent <17064840+torosent@users.noreply.github.com> --- .github/dependabot.yml | 4 ---- .../OpenTelemetryTracing/Client/Client.csproj | 6 ++++-- .../dotnet/OpenTelemetryTracing/Client/Program.cs | 13 ++++++++++--- .../dotnet/OpenTelemetryTracing/Worker/Program.cs | 11 +++++------ .../OpenTelemetryTracing/Worker/Worker.csproj | 5 +++-- 5 files changed, 22 insertions(+), 17 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 4b7d9e62..8f0e8315 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -11,10 +11,6 @@ updates: - "/samples/scenarios/**" schedule: interval: "weekly" - ignore: - # These packages are not yet published to nuget.org - - dependency-name: "Microsoft.DurableTask.Sdk" - - dependency-name: "Microsoft.DurableTask.Sdk.Grpc" # Java (Maven) - package-ecosystem: "maven" diff --git a/samples/durable-task-sdks/dotnet/OpenTelemetryTracing/Client/Client.csproj b/samples/durable-task-sdks/dotnet/OpenTelemetryTracing/Client/Client.csproj index c7011d05..962011d7 100644 --- a/samples/durable-task-sdks/dotnet/OpenTelemetryTracing/Client/Client.csproj +++ b/samples/durable-task-sdks/dotnet/OpenTelemetryTracing/Client/Client.csproj @@ -2,9 +2,11 @@ Exe net8.0 + enable + enable - - + + diff --git a/samples/durable-task-sdks/dotnet/OpenTelemetryTracing/Client/Program.cs b/samples/durable-task-sdks/dotnet/OpenTelemetryTracing/Client/Program.cs index 66046ce8..959b7181 100644 --- a/samples/durable-task-sdks/dotnet/OpenTelemetryTracing/Client/Program.cs +++ b/samples/durable-task-sdks/dotnet/OpenTelemetryTracing/Client/Program.cs @@ -1,5 +1,7 @@ using Microsoft.DurableTask; using Microsoft.DurableTask.Client; +using Microsoft.DurableTask.Client.AzureManaged; +using Microsoft.Extensions.DependencyInjection; string endpoint = Environment.GetEnvironmentVariable("ENDPOINT") ?? "http://localhost:8080"; string taskHub = Environment.GetEnvironmentVariable("TASKHUB") ?? "default"; @@ -7,9 +9,14 @@ ? $"Endpoint={endpoint};TaskHub={taskHub};Authentication=None" : $"Endpoint={endpoint};TaskHub={taskHub};Authentication=DefaultAzure"; -var builder = DurableTaskClient.CreateBuilder(); -builder.UseDurableTaskScheduler(connectionString); -var client = builder.Build(); +var services = new ServiceCollection(); +services.AddDurableTaskClient(options => +{ + options.UseDurableTaskScheduler(connectionString); +}); + +await using ServiceProvider serviceProvider = services.BuildServiceProvider(); +DurableTaskClient client = serviceProvider.GetRequiredService(); Console.WriteLine("Scheduling order processing orchestration..."); string instanceId = await client.ScheduleNewOrchestrationInstanceAsync( diff --git a/samples/durable-task-sdks/dotnet/OpenTelemetryTracing/Worker/Program.cs b/samples/durable-task-sdks/dotnet/OpenTelemetryTracing/Worker/Program.cs index 9830f34e..c90ed798 100644 --- a/samples/durable-task-sdks/dotnet/OpenTelemetryTracing/Worker/Program.cs +++ b/samples/durable-task-sdks/dotnet/OpenTelemetryTracing/Worker/Program.cs @@ -1,5 +1,6 @@ using Microsoft.DurableTask; using Microsoft.DurableTask.Worker; +using Microsoft.DurableTask.Worker.AzureManaged; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using OpenTelemetry; @@ -30,9 +31,8 @@ ? $"Endpoint={endpoint};TaskHub={taskHub};Authentication=None" : $"Endpoint={endpoint};TaskHub={taskHub};Authentication=DefaultAzure"; -builder.Services.AddDurableTaskWorker(builder => -{ - builder.AddTasks(tasks => +builder.Services.AddDurableTaskWorker() + .AddTasks(tasks => { tasks.AddOrchestratorFunc("OrderProcessingOrchestration", async (ctx, input) => { @@ -78,9 +78,8 @@ Thread.Sleep(50); // Simulate work return Task.FromResult($"Notified({input})"); }); - }); -}) -.UseDurableTaskScheduler(connectionString); + }) + .UseDurableTaskScheduler(connectionString); var host = builder.Build(); Console.WriteLine("Worker started. Press Ctrl+C to exit."); diff --git a/samples/durable-task-sdks/dotnet/OpenTelemetryTracing/Worker/Worker.csproj b/samples/durable-task-sdks/dotnet/OpenTelemetryTracing/Worker/Worker.csproj index 0e0dc2a6..d466d50f 100644 --- a/samples/durable-task-sdks/dotnet/OpenTelemetryTracing/Worker/Worker.csproj +++ b/samples/durable-task-sdks/dotnet/OpenTelemetryTracing/Worker/Worker.csproj @@ -2,10 +2,11 @@ Exe net8.0 + enable + enable - - +