diff --git a/dotnet/samples/GettingStartedWithProcesses/Step00/Step00_Processes.cs b/dotnet/samples/GettingStartedWithProcesses/Step00/Step00_Processes.cs index 1fce9ca23921..cf4333daba87 100644 --- a/dotnet/samples/GettingStartedWithProcesses/Step00/Step00_Processes.cs +++ b/dotnet/samples/GettingStartedWithProcesses/Step00/Step00_Processes.cs @@ -27,17 +27,15 @@ public async Task UseSimplestProcessAsync() Kernel kernel = Kernel.CreateBuilder() .Build(); - ProcessBuilder processBuilder = new(nameof(Step00_Processes)); - // Create a process that will interact with the chat completion service ProcessBuilder process = new("ChatBot"); - var startStep = processBuilder.AddStepFromType(); - var doSomeWorkStep = processBuilder.AddStepFromType(); - var doMoreWorkStep = processBuilder.AddStepFromType(); - var lastStep = processBuilder.AddStepFromType(); + var startStep = process.AddStepFromType(); + var doSomeWorkStep = process.AddStepFromType(); + var doMoreWorkStep = process.AddStepFromType(); + var lastStep = process.AddStepFromType(); // Define the process flow - processBuilder + process .OnInputEvent(ProcessEvents.StartProcess) .SendEventTo(new ProcessFunctionTargetBuilder(startStep));