Skip to content

Commit

Permalink
chore: remove deprecated correlation (#540)
Browse files Browse the repository at this point in the history
  • Loading branch information
stijnmoreels committed Oct 10, 2023
1 parent 15868c1 commit 14e17ad
Show file tree
Hide file tree
Showing 13 changed files with 2 additions and 851 deletions.

This file was deleted.

26 changes: 0 additions & 26 deletions src/Arcus.Observability.Correlation/CorrelationInfoOptions.cs

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,23 +1,9 @@
using System;

namespace Arcus.Observability.Correlation
namespace Arcus.Observability.Correlation
{
/// <summary>
/// Default <see cref="ICorrelationInfoAccessor"/> implementation to access the <see cref="CorrelationInfo"/> in the current context.
/// </summary>
public class DefaultCorrelationInfoAccessor : DefaultCorrelationInfoAccessor<CorrelationInfo>, ICorrelationInfoAccessor
{
/// <summary>
/// Prevents a new instance of the <see cref="DefaultCorrelationInfoAccessor"/> class from being created.
/// </summary>
public DefaultCorrelationInfoAccessor()
{
}

/// <summary>
/// Gets the default instance for the <see cref="DefaultCorrelationInfoAccessor"/> class.
/// </summary>
[Obsolete("Create a new instance instead of using this static value")]
public new static DefaultCorrelationInfoAccessor Instance { get; } = new DefaultCorrelationInfoAccessor();
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Threading;
using System.Threading;

namespace Arcus.Observability.Correlation
{
Expand All @@ -11,13 +10,6 @@ public class DefaultCorrelationInfoAccessor<TCorrelationInfo> : ICorrelationInfo
{
private TCorrelationInfo _correlationInfo;

/// <summary>
/// Prevents a new instance of the <see cref="DefaultCorrelationInfoAccessor"/> class from being created.
/// </summary>
public DefaultCorrelationInfoAccessor()
{
}

/// <summary>
/// Gets the current correlation information initialized in this context.
/// </summary>
Expand All @@ -34,11 +26,5 @@ public void SetCorrelationInfo(TCorrelationInfo correlationInfo)
{
Interlocked.Exchange(ref _correlationInfo, correlationInfo);
}

/// <summary>
/// Gets the default instance for the <see cref="DefaultCorrelationInfoAccessor{TCorrelation}"/> class.
/// </summary>
[Obsolete("Create a new instance instead of using this static value")]
public static DefaultCorrelationInfoAccessor<TCorrelationInfo> Instance { get; } = new DefaultCorrelationInfoAccessor<TCorrelationInfo>();
}
}
Loading

0 comments on commit 14e17ad

Please sign in to comment.