Savorboard pirms 5 gadiem
vecāks
revīzija
c7a941c16d
1 mainītis faili ar 2 papildinājumiem un 7 dzēšanām
  1. +2
    -7
      src/DotNetCore.CAP/Diagnostics/TracingHeaders.cs

+ 2
- 7
src/DotNetCore.CAP/Diagnostics/TracingHeaders.cs Parādīt failu

@@ -9,7 +9,7 @@ namespace DotNetCore.CAP.Diagnostics
{
public class TracingHeaders : IEnumerable<KeyValuePair<string, string>>
{
private List<KeyValuePair<string, string>> _dataStore;
private List<KeyValuePair<string, string>> _dataStore = new List<KeyValuePair<string, string>>();

public IEnumerator<KeyValuePair<string, string>> GetEnumerator()
{
@@ -23,11 +23,6 @@ namespace DotNetCore.CAP.Diagnostics

public void Add(string name, string value)
{
if (_dataStore == null)
{
_dataStore = new List<KeyValuePair<string, string>>();
}

_dataStore.Add(new KeyValuePair<string, string>(name, value));
}

@@ -46,4 +41,4 @@ namespace DotNetCore.CAP.Diagnostics
_dataStore?.Clear();
}
}
}
}

Notiek ielāde…
Atcelt
Saglabāt