-
Notifications
You must be signed in to change notification settings - Fork 841
Deprecate IResourceUtilizationPublisher #5360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
RussKie
merged 10 commits into
dotnet:main
from
evgenyfedorov2:users/evgenyfedorov2/deprecate_ru_publisher
Aug 26, 2024
Merged
Changes from 8 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
06f97c1
initial commit
evgenyfedorov2 179e064
remove unnecessary suppression
evgenyfedorov2 8b898b2
update
evgenyfedorov2 ed4fcd1
Deprecate the API using the new diagnostic ID
evgenyfedorov2 c1733cc
Remove unncessary suppression
evgenyfedorov2 bcb7157
Update text
evgenyfedorov2 ccd6c80
update doc
evgenyfedorov2 e74cf16
Fix warnings
evgenyfedorov2 b79aff3
PR comments
evgenyfedorov2 5b405a2
update link
evgenyfedorov2 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| // Licensed to the .NET Foundation under one or more agreements. | ||
| // The .NET Foundation licenses this file to you under the MIT license. | ||
|
|
||
| #if !NET5_0_OR_GREATER | ||
|
|
||
| using System.Diagnostics.CodeAnalysis; | ||
|
|
||
| namespace System; | ||
|
|
||
| /// <summary> | ||
| /// Marks program elements that are no longer in use. | ||
| /// </summary> | ||
| /// <remarks> | ||
| /// Source code imported from | ||
| /// <see href="https://github.com/dotnet/runtime/blob/5535e31a712343a63f5d7d796cd874e563e5ac14/src/libraries/System.Private.CoreLib/src/System/ObsoleteAttribute.cs"> | ||
| /// ObsoleteAttribute.cs</see> without any changes, all resulting warnings ignored accordingly. | ||
| /// </remarks> | ||
| #pragma warning disable CA1019 // Define accessors for attribute arguments | ||
| #pragma warning disable S3996 // URI properties should not be strings | ||
| [ExcludeFromCodeCoverage] | ||
| [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | | ||
| AttributeTargets.Interface | AttributeTargets.Constructor | AttributeTargets.Method | | ||
| AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | | ||
| AttributeTargets.Delegate, | ||
| Inherited = false)] | ||
| internal sealed class ObsoleteAttribute : Attribute | ||
| { | ||
| public ObsoleteAttribute() | ||
| { | ||
| } | ||
|
|
||
| public ObsoleteAttribute(string? message) | ||
| { | ||
| Message = message; | ||
| } | ||
|
|
||
| public ObsoleteAttribute(string? message, bool error) | ||
| { | ||
| Message = message; | ||
| IsError = error; | ||
| } | ||
|
|
||
| public string? Message { get; } | ||
|
|
||
| public bool IsError { get; } | ||
|
|
||
| public string? DiagnosticId { get; set; } | ||
|
|
||
| public string? UrlFormat { get; set; } | ||
| } | ||
|
|
||
| #endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| To use this source in your project, add the following to your `.csproj` file: | ||
|
|
||
| ```xml | ||
| <PropertyGroup> | ||
| <InjectObsoleteAttributeOnLegacy>true</InjectObsoleteAttributeOnLegacy> | ||
| </PropertyGroup> | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
...ries/Microsoft.Extensions.Diagnostics.ResourceMonitoring/IResourceUtilizationPublisher.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.