diff --git a/src/libraries/System.Transactions.Local/src/ILLink/ILLink.Descriptors.Windows.xml b/src/libraries/System.Transactions.Local/src/ILLink/ILLink.Descriptors.Windows.xml new file mode 100644 index 00000000000000..e6f8e388507864 --- /dev/null +++ b/src/libraries/System.Transactions.Local/src/ILLink/ILLink.Descriptors.Windows.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/src/libraries/System.Transactions.Local/src/System.Transactions.Local.csproj b/src/libraries/System.Transactions.Local/src/System.Transactions.Local.csproj index 11c526a173d58a..df81835ed88e5c 100644 --- a/src/libraries/System.Transactions.Local/src/System.Transactions.Local.csproj +++ b/src/libraries/System.Transactions.Local/src/System.Transactions.Local.csproj @@ -8,6 +8,9 @@ $(NoWarn);CS1591 $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) + + + diff --git a/src/libraries/System.Transactions.Local/src/System/Transactions/DtcProxyShim/DTCInterfaces/IResourceManagerFactory.cs b/src/libraries/System.Transactions.Local/src/System/Transactions/DtcProxyShim/DTCInterfaces/IResourceManagerFactory.cs index 7685b4cee47736..42ba1a0bfd7077 100644 --- a/src/libraries/System.Transactions.Local/src/System/Transactions/DtcProxyShim/DTCInterfaces/IResourceManagerFactory.cs +++ b/src/libraries/System.Transactions.Local/src/System/Transactions/DtcProxyShim/DTCInterfaces/IResourceManagerFactory.cs @@ -8,9 +8,8 @@ namespace System.Transactions.DtcProxyShim.DTCInterfaces; [ComImport, Guid("13741d20-87eb-11ce-8081-0080c758527e"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] internal interface IResourceManagerFactory { - [PreserveSig] - public int Create( - in Guid pguidRM, + internal void Create( + Guid pguidRM, [MarshalAs(UnmanagedType.LPStr)] string pszRMName, [MarshalAs(UnmanagedType.Interface)] IResourceManagerSink pIResMgrSink, [MarshalAs(UnmanagedType.Interface)] out IResourceManager rm); diff --git a/src/libraries/System.Transactions.Local/src/System/Transactions/DtcProxyShim/DTCInterfaces/IResourceManagerFactory2.cs b/src/libraries/System.Transactions.Local/src/System/Transactions/DtcProxyShim/DTCInterfaces/IResourceManagerFactory2.cs index 06c1b841226355..bb91e53bd093b0 100644 --- a/src/libraries/System.Transactions.Local/src/System/Transactions/DtcProxyShim/DTCInterfaces/IResourceManagerFactory2.cs +++ b/src/libraries/System.Transactions.Local/src/System/Transactions/DtcProxyShim/DTCInterfaces/IResourceManagerFactory2.cs @@ -16,9 +16,8 @@ namespace System.Transactions.DtcProxyShim.DTCInterfaces; [ComImport, Guid("6B369C21-FBD2-11d1-8F47-00C04F8EE57D"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] internal interface IResourceManagerFactory2 : IResourceManagerFactory { - [PreserveSig] - public new int Create( - in Guid pguidRM, + internal new void Create( + Guid pguidRM, [MarshalAs(UnmanagedType.LPStr)] string pszRMName, [MarshalAs(UnmanagedType.Interface)] IResourceManagerSink pIResMgrSink, [MarshalAs(UnmanagedType.Interface)] out IResourceManager rm); @@ -36,10 +35,10 @@ internal interface IResourceManagerFactory2 : IResourceManagerFactory /// /// Reference to the interface on the resource manager object whose IID is specified in the parameter. /// - public void CreateEx( - in Guid pguidRM, + internal void CreateEx( + Guid pguidRM, [MarshalAs(UnmanagedType.LPStr)] string pszRMName, [MarshalAs(UnmanagedType.Interface)] IResourceManagerSink pIResMgrSink, - in Guid riidRequested, + Guid riidRequested, [MarshalAs(UnmanagedType.Interface)] out object rm); } diff --git a/src/libraries/System.Transactions.Local/src/System/Transactions/DtcProxyShim/NotificationShimFactory.cs b/src/libraries/System.Transactions.Local/src/System/Transactions/DtcProxyShim/NotificationShimFactory.cs index 9a6fc08a613148..9f9f604b0fd2fd 100644 --- a/src/libraries/System.Transactions.Local/src/System/Transactions/DtcProxyShim/NotificationShimFactory.cs +++ b/src/libraries/System.Transactions.Local/src/System/Transactions/DtcProxyShim/NotificationShimFactory.cs @@ -42,6 +42,7 @@ private void Initialize(SafeWaitHandle hEvent) // TODO: Instantiate all the locks (critical sections) } + [System.Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("Trimming", "IL2050", Justification = "Leave me alone")] public void ConnectToProxy( string nodeName, Guid resourceManagerIdentifier,