Replay one C# execution where a client file calls a worker file and prints the response.

Project Entry

RequestClient.cs
using System;

class Program
{
    static void Main()
    {
        string selected = ;
        int requestId = 42;
        string label = selected;

        if (selected == "refresh")
        {
            label = "cache";
        }
        else if (selected == "archive")
        {
            label = "records";
        }

        string response = RequestWorker.Handle(selected);
        int ticket = requestId + selected.Length;

        Console.WriteLine("label=" + label);
        Console.WriteLine("ticket=" + ticket);
        Console.WriteLine(response);
    }
}
using System;

class Program
{
    static void Main()
    {
        string selected = ;
        int requestId = 42;
        string label = selected;

        if (selected == "refresh")
        {
            label = "cache";
        }
        else if (selected == "archive")
        {
            label = "records";
        }

        string response = RequestWorker.Handle(selected);
        int ticket = requestId + selected.Length;

        Console.WriteLine("label=" + label);
        Console.WriteLine("ticket=" + ticket);
        Console.WriteLine(response);
    }
}
using System;

class Program
{
    static void Main()
    {
        string selected = ;
        int requestId = 42;
        string label = selected;

        if (selected == "refresh")
        {
            label = "cache";
        }
        else if (selected == "archive")
        {
            label = "records";
        }

        string response = RequestWorker.Handle(selected);
        int ticket = requestId + selected.Length;

        Console.WriteLine("label=" + label);
        Console.WriteLine("ticket=" + ticket);
        Console.WriteLine(response);
    }
}
source panel When an example has more than one source file, the replay UI keeps each file in its own panel while preserving one ordered trace stream. The Variables panel follows the actual call into the worker file and the return back to the client.
boundary The client file owns the entry point and selected command. The worker file owns the response rule for that command.