From 234bbb509e9ea8b08787fcd509edd6141e37d751 Mon Sep 17 00:00:00 2001 From: Marek Safar Date: Thu, 10 Jan 2019 23:47:35 +0100 Subject: [PATCH] Move public interface ISymDocumentWriter to shared location (#21931) --- .../System.Private.CoreLib.csproj | 1 - .../shared/System.Private.CoreLib.Shared.projitems | 1 + .../SymbolStore/ISymbolDocumentWriter.cs | 12 +++++++++ .../Diagnostics/SymbolStore/ISymDocumentWriter.cs | 31 ---------------------- 4 files changed, 13 insertions(+), 32 deletions(-) create mode 100644 src/System.Private.CoreLib/shared/System/Diagnostics/SymbolStore/ISymbolDocumentWriter.cs delete mode 100644 src/System.Private.CoreLib/src/System/Diagnostics/SymbolStore/ISymDocumentWriter.cs diff --git a/src/System.Private.CoreLib/System.Private.CoreLib.csproj b/src/System.Private.CoreLib/System.Private.CoreLib.csproj index 5111d69..f57d62d 100644 --- a/src/System.Private.CoreLib/System.Private.CoreLib.csproj +++ b/src/System.Private.CoreLib/System.Private.CoreLib.csproj @@ -158,7 +158,6 @@ - diff --git a/src/System.Private.CoreLib/shared/System.Private.CoreLib.Shared.projitems b/src/System.Private.CoreLib/shared/System.Private.CoreLib.Shared.projitems index 45e8cbc..bd67504 100644 --- a/src/System.Private.CoreLib/shared/System.Private.CoreLib.Shared.projitems +++ b/src/System.Private.CoreLib/shared/System.Private.CoreLib.Shared.projitems @@ -200,6 +200,7 @@ + diff --git a/src/System.Private.CoreLib/shared/System/Diagnostics/SymbolStore/ISymbolDocumentWriter.cs b/src/System.Private.CoreLib/shared/System/Diagnostics/SymbolStore/ISymbolDocumentWriter.cs new file mode 100644 index 0000000..4980ed7 --- /dev/null +++ b/src/System.Private.CoreLib/shared/System/Diagnostics/SymbolStore/ISymbolDocumentWriter.cs @@ -0,0 +1,12 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace System.Diagnostics.SymbolStore +{ + public interface ISymbolDocumentWriter + { + void SetCheckSum(Guid algorithmId, byte[] checkSum); + void SetSource(byte[] source); + } +} diff --git a/src/System.Private.CoreLib/src/System/Diagnostics/SymbolStore/ISymDocumentWriter.cs b/src/System.Private.CoreLib/src/System/Diagnostics/SymbolStore/ISymDocumentWriter.cs deleted file mode 100644 index 09a7a3b..0000000 --- a/src/System.Private.CoreLib/src/System/Diagnostics/SymbolStore/ISymDocumentWriter.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. - -/*============================================================ -** -** -** -** Represents a document referenced by a symbol store. A document is -** defined by a URL and a document type GUID. Document source can -** optionally be stored in the symbol store. -** -** -===========================================================*/ - -using System; - -namespace System.Diagnostics.SymbolStore -{ - // Interface does not need to be marked with the serializable attribute - public interface ISymbolDocumentWriter - { - // SetSource will store the raw source for a document into the - // symbol store. An array of unsigned bytes is used instead of - // character data to accommodate a wider variety of "source". - void SetSource(byte[] source); - - // Check sum support. - void SetCheckSum(Guid algorithmId, byte[] checkSum); - } -} -- 2.7.4