From 291540f29d723825223fad18227599eb4963008f Mon Sep 17 00:00:00 2001 From: "Yu Leng (from Dev Box)" Date: Wed, 30 Apr 2025 16:55:30 +0800 Subject: [PATCH] init --- src/modules/cmdpal/ext/Microsoft.CmdPal.Ext.Apps/AppCache.cs | 2 +- .../ext/Microsoft.CmdPal.Ext.Apps/Programs/ReparsePoint.cs | 2 +- .../Storage/FileSystemWatcherWrapper.cs | 2 +- .../ext/Microsoft.CmdPal.Ext.Apps/Storage/PackageRepository.cs | 2 +- .../Storage/Win32ProgramFileSystemWatchers.cs | 2 +- .../Microsoft.CmdPal.Ext.Apps/Storage/Win32ProgramRepository.cs | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/modules/cmdpal/ext/Microsoft.CmdPal.Ext.Apps/AppCache.cs b/src/modules/cmdpal/ext/Microsoft.CmdPal.Ext.Apps/AppCache.cs index cb80c5e8c5f7..fcbf7301da22 100644 --- a/src/modules/cmdpal/ext/Microsoft.CmdPal.Ext.Apps/AppCache.cs +++ b/src/modules/cmdpal/ext/Microsoft.CmdPal.Ext.Apps/AppCache.cs @@ -12,7 +12,7 @@ namespace Microsoft.CmdPal.Ext.Apps; -public sealed class AppCache : IDisposable +public sealed partial class AppCache : IDisposable { private Win32ProgramFileSystemWatchers _win32ProgramRepositoryHelper; diff --git a/src/modules/cmdpal/ext/Microsoft.CmdPal.Ext.Apps/Programs/ReparsePoint.cs b/src/modules/cmdpal/ext/Microsoft.CmdPal.Ext.Apps/Programs/ReparsePoint.cs index b7fbca811dae..1e3463f77cc4 100644 --- a/src/modules/cmdpal/ext/Microsoft.CmdPal.Ext.Apps/Programs/ReparsePoint.cs +++ b/src/modules/cmdpal/ext/Microsoft.CmdPal.Ext.Apps/Programs/ReparsePoint.cs @@ -319,7 +319,7 @@ private sealed class AppExecutionAliasMetadata public static AppExecutionAliasMetadata FromPersistedRepresentationIntPtr(IntPtr reparseDataBufferPtr, AppExecutionAliasReparseTagBufferLayoutVersion version) { - var dataOffset = Marshal.SizeOf(typeof(AppExecutionAliasReparseTagHeader)); + var dataOffset = Marshal.SizeOf(); var dataBufferPtr = reparseDataBufferPtr + dataOffset; string? packageFullName = null; diff --git a/src/modules/cmdpal/ext/Microsoft.CmdPal.Ext.Apps/Storage/FileSystemWatcherWrapper.cs b/src/modules/cmdpal/ext/Microsoft.CmdPal.Ext.Apps/Storage/FileSystemWatcherWrapper.cs index c8568451c394..436e7e44c1a7 100644 --- a/src/modules/cmdpal/ext/Microsoft.CmdPal.Ext.Apps/Storage/FileSystemWatcherWrapper.cs +++ b/src/modules/cmdpal/ext/Microsoft.CmdPal.Ext.Apps/Storage/FileSystemWatcherWrapper.cs @@ -8,7 +8,7 @@ namespace Microsoft.CmdPal.Ext.Apps.Storage; // File System Watcher Wrapper class which implements the IFileSystemWatcherWrapper interface -public sealed class FileSystemWatcherWrapper : FileSystemWatcher, IFileSystemWatcherWrapper +public sealed partial class FileSystemWatcherWrapper : FileSystemWatcher, IFileSystemWatcherWrapper { public FileSystemWatcherWrapper() { diff --git a/src/modules/cmdpal/ext/Microsoft.CmdPal.Ext.Apps/Storage/PackageRepository.cs b/src/modules/cmdpal/ext/Microsoft.CmdPal.Ext.Apps/Storage/PackageRepository.cs index 0632d931e19f..1f7a747d57ac 100644 --- a/src/modules/cmdpal/ext/Microsoft.CmdPal.Ext.Apps/Storage/PackageRepository.cs +++ b/src/modules/cmdpal/ext/Microsoft.CmdPal.Ext.Apps/Storage/PackageRepository.cs @@ -15,7 +15,7 @@ namespace Microsoft.CmdPal.Ext.Apps.Storage; /// A repository for storing packaged applications such as UWP apps or appx packaged desktop apps. /// This repository will also monitor for changes to the PackageCatalog and update the repository accordingly /// -internal sealed class PackageRepository : ListRepository, IProgramRepository +internal sealed partial class PackageRepository : ListRepository, IProgramRepository { private readonly IPackageCatalog _packageCatalog; diff --git a/src/modules/cmdpal/ext/Microsoft.CmdPal.Ext.Apps/Storage/Win32ProgramFileSystemWatchers.cs b/src/modules/cmdpal/ext/Microsoft.CmdPal.Ext.Apps/Storage/Win32ProgramFileSystemWatchers.cs index 18023edffbac..6847e619e1f2 100644 --- a/src/modules/cmdpal/ext/Microsoft.CmdPal.Ext.Apps/Storage/Win32ProgramFileSystemWatchers.cs +++ b/src/modules/cmdpal/ext/Microsoft.CmdPal.Ext.Apps/Storage/Win32ProgramFileSystemWatchers.cs @@ -9,7 +9,7 @@ namespace Microsoft.CmdPal.Ext.Apps.Storage; -internal sealed class Win32ProgramFileSystemWatchers : IDisposable +internal sealed partial class Win32ProgramFileSystemWatchers : IDisposable { public string[] PathsToWatch { get; set; } diff --git a/src/modules/cmdpal/ext/Microsoft.CmdPal.Ext.Apps/Storage/Win32ProgramRepository.cs b/src/modules/cmdpal/ext/Microsoft.CmdPal.Ext.Apps/Storage/Win32ProgramRepository.cs index 130855689350..5a0eb09451fd 100644 --- a/src/modules/cmdpal/ext/Microsoft.CmdPal.Ext.Apps/Storage/Win32ProgramRepository.cs +++ b/src/modules/cmdpal/ext/Microsoft.CmdPal.Ext.Apps/Storage/Win32ProgramRepository.cs @@ -14,7 +14,7 @@ namespace Microsoft.CmdPal.Ext.Apps.Storage; -internal sealed class Win32ProgramRepository : ListRepository, IProgramRepository +internal sealed partial class Win32ProgramRepository : ListRepository, IProgramRepository { private static readonly IFileSystem FileSystem = new FileSystem(); private static readonly IPath Path = FileSystem.Path;