Skip to content

Commit

Permalink
Mark RouteTracer obsoleted
Browse files Browse the repository at this point in the history
  • Loading branch information
kenelin committed Sep 12, 2021
1 parent 3c5c1dd commit 2acf424
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions source/Htc.Vita.Core.Tests/RouteTracerTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace Htc.Vita.Core.Tests
{
#pragma warning disable CS0618
public class RouteTracerTest
{
private readonly ITestOutputHelper _output;
Expand Down Expand Up @@ -39,4 +40,5 @@ public void Default_0_Trace_WithIpAddress()
}
}
}
#pragma warning restore CS0618
}
2 changes: 1 addition & 1 deletion source/Htc.Vita.Core/Net/DefaultNetworkManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ protected override GetUnusedLocalPortResult OnGetUnusedLocalPort(bool shouldUseL
}
catch (Exception e)
{
Logger.GetInstance(typeof(RouteTracer)).Error($"Can not trace route: {e.Message}");
Logger.GetInstance(typeof(DefaultNetworkManager)).Error($"Can not trace route: {e.Message}");
return new TraceRouteResult
{
Status = TraceRouteStatus.NetworkError
Expand Down
1 change: 1 addition & 0 deletions source/Htc.Vita.Core/Net/RouteTracer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ namespace Htc.Vita.Core.Net
/// <summary>
/// Class RouteTracer.
/// </summary>
[Obsolete("This class is obsoleted.")]
public static partial class RouteTracer
{
/// <summary>
Expand Down

0 comments on commit 2acf424

Please sign in to comment.