Implements Prompt 3. Newline-delimited JSON-RPC dispatcher (ping, loadSolution, projectSummary) with pure XML/.sln parsing — no Roslyn or MSBuild NuGet packages (irreconcilable .NET 10 SDK API mismatches). XDocument parses .csproj for frameworks/packages/refs; regex parses .sln project entries; filesystem walk counts .cs/.fs/.vb documents. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
11 lines
324 B
C#
11 lines
324 B
C#
using System.Text.Json;
|
|
|
|
namespace RoslynHelper.JsonRpc.Handlers;
|
|
|
|
/// <summary>Contract for a JSON-RPC method handler.</summary>
|
|
public interface IHandler
|
|
{
|
|
/// <summary>Execute the handler and return the result object (serialized as the 'result' field).</summary>
|
|
Task<object> HandleAsync(JsonElement? @params);
|
|
}
|