From 906f43a9d9a992bef8b363fda1c84649fadd2a6f Mon Sep 17 00:00:00 2001 From: Kingcean Date: Mon, 20 Nov 2023 15:37:41 +0800 Subject: [PATCH] Update references. --- DiffPlex.App/DiffPlex.App.csproj | 8 ++++---- DiffPlex.Windows/DiffPlex.Windows.csproj | 10 +++++----- DiffPlex.Windows/Handlers.cs | 9 +++++++-- 3 files changed, 16 insertions(+), 11 deletions(-) diff --git a/DiffPlex.App/DiffPlex.App.csproj b/DiffPlex.App/DiffPlex.App.csproj index 0b50c555..6292cfd1 100644 --- a/DiffPlex.App/DiffPlex.App.csproj +++ b/DiffPlex.App/DiffPlex.App.csproj @@ -6,10 +6,10 @@ DiffPlex.UI DiffPlex.App app.manifest - 1.0.0 + 1.1.0 diff Diff files and text. - 10.0 + 12.0 1.0.0.0 1.0.0.0 x86;x64;arm64 @@ -43,8 +43,8 @@ - - + + diff --git a/DiffPlex.Windows/DiffPlex.Windows.csproj b/DiffPlex.Windows/DiffPlex.Windows.csproj index fcdf4d8f..195a08b2 100644 --- a/DiffPlex.Windows/DiffPlex.Windows.csproj +++ b/DiffPlex.Windows/DiffPlex.Windows.csproj @@ -11,7 +11,7 @@ diff diffplex_icon.png DiffPlex.Windows is a Windows App SDK control library that allows you to programatically render visual text diffs in your application. - 10.0 + 12.0 1.1.0.0 1.1.0.0 Kingcean Tuan; Matthew Manela @@ -35,10 +35,10 @@ - - - - + + + + diff --git a/DiffPlex.Windows/Handlers.cs b/DiffPlex.Windows/Handlers.cs index 6eec70d0..e7e3e122 100644 --- a/DiffPlex.Windows/Handlers.cs +++ b/DiffPlex.Windows/Handlers.cs @@ -42,6 +42,11 @@ public DiffTextLocalWebAppCommandHandler() if (string.IsNullOrWhiteSpace(Version)) Version = "1.0.0.0"; } + /// + /// Gets the identifier. + /// + public string Id => "diffplex"; + /// /// Gets or sets the description of the command handler. /// @@ -56,9 +61,9 @@ public DiffTextLocalWebAppCommandHandler() /// Processes. /// /// The request message. - /// The manifest of the local web app. + /// The arguments of the local web app. /// The response message. - public async Task Process(LocalWebAppRequestMessage request, LocalWebAppManifest manifest) + public async Task Process(LocalWebAppRequestMessage request, LocalWebAppCommandHandlerContext args) { var oldText = request?.Data?.TryGetStringValue("old") ?? request?.Data?.TryGetStringValue("o") ?? string.Empty; var newText = request?.Data?.TryGetStringValue("new") ?? request?.Data?.TryGetStringValue("n") ?? string.Empty;