Skip to content

Commit

Permalink
Fix issue with TokenCredential (#1261)
Browse files Browse the repository at this point in the history
Fix an issue where we forgot to set the SymbolTokenCredential property.  Additionally make this an optional paramter.
  • Loading branch information
leculver authored Jun 6, 2024
1 parent 135c7e8 commit 34c4600
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Microsoft.Diagnostics.Runtime/CustomDataTarget.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,10 @@ public class CustomDataTarget : IDisposable
/// </summary>
/// <param name="reader">A non-null IDataReader.</param>
/// <param name="symbolCredential">The TokenCredential to use for any Azure based symbol servers (set to null if not using one).</param>
public CustomDataTarget(IDataReader reader, TokenCredential? symbolCredential)
public CustomDataTarget(IDataReader reader, TokenCredential? symbolCredential = null)
{
DataReader = reader ?? throw new ArgumentNullException(nameof(reader));
SymbolTokenCredential = symbolCredential;
}

/// <summary>
Expand Down

0 comments on commit 34c4600

Please sign in to comment.