public InMemoryEventBusPerformanceSnapshot TakeSnapshot() { var newSnapshot = new InMemoryEventBusPerformanceSnapshot(); InMemoryEventBusPerformanceSnapshot previousSnapshot = this.currentSnapshot; this.currentSnapshot = newSnapshot; return(previousSnapshot); }
public InMemoryEventBusPerformanceCounter() { this.currentSnapshot = new InMemoryEventBusPerformanceSnapshot(); }