public EventMonitorWindow() { this.InitializeComponent(); this.counter = new TotalCounter(); this.providerCounterRows = new Dictionary <IProvider, ProviderCounterViewRow>(); this.instrumentCounterRows = new Dictionary <IFIXInstrument, InstrumentCounterViewRow>(); this.selectedProvider = (IProvider)null; }
public EventMonitorWindow() { this.InitializeComponent(); this.counter = new TotalCounter(); this.providerCounterRows = new Dictionary<IProvider, ProviderCounterViewRow>(); this.instrumentCounterRows = new Dictionary<IFIXInstrument, InstrumentCounterViewRow>(); this.selectedProvider = (IProvider)null; }
public TotalCounter GetSnapshot() { TotalCounter totalCounter = new TotalCounter(); lock (this.lockObject) { this.CopyTo((EventCounter)totalCounter); foreach (ProviderCounter item_0 in (IEnumerable<ProviderCounter>) this.ProviderCounters) totalCounter.providerCounters.Add(item_0.Provider, item_0.Clone()); } return totalCounter; }
public TotalCounter GetSnapshot() { TotalCounter totalCounter = new TotalCounter(); lock (this.lockObject) { this.CopyTo((EventCounter)totalCounter); foreach (ProviderCounter item_0 in (IEnumerable <ProviderCounter>) this.ProviderCounters) { totalCounter.providerCounters.Add(item_0.Provider, item_0.Clone()); } } return(totalCounter); }