コード例 #1
0
ファイル: TimedScopeProvider.cs プロジェクト: vh-vahan/Omex
 /// <summary>
 /// Create a timed scope
 /// </summary>
 /// <param name="correlation">Correlation data</param>
 /// <param name="machineInformation">Machine Information</param>
 /// <param name="customLogger">Use a custom logger for the timed scope</param>
 /// <param name="replayEventConfigurator">Replay event configurator</param>
 /// <param name="timedScopeStackManager">Timed scope stack manager</param>
 public TimedScopeProvider(
     ICorrelationDataProvider correlation,
     IMachineInformation machineInformation,
     ITimedScopeLogger customLogger,
     IReplayEventConfigurator replayEventConfigurator,
     ITimedScopeStackManager timedScopeStackManager)
 {
     m_correlation             = Code.ExpectsArgument(correlation, nameof(correlation), TaggingUtilities.ReserveTag(0x2375d3d1 /* tag_933pr */));
     m_machineInformation      = Code.ExpectsArgument(machineInformation, nameof(machineInformation), TaggingUtilities.ReserveTag(0x2375d3d2 /* tag_933ps */));
     m_scopeLogger             = Code.ExpectsArgument(customLogger, nameof(customLogger), TaggingUtilities.ReserveTag(0x2375d3d3 /* tag_933pt */));
     m_replayEventConfigurator = Code.ExpectsArgument(replayEventConfigurator, nameof(replayEventConfigurator), TaggingUtilities.ReserveTag(0x2375d3d4 /* tag_933pu */));
     m_timedScopeStackManager  = Code.ExpectsArgument(timedScopeStackManager, nameof(timedScopeStackManager), TaggingUtilities.ReserveTag(0x2375d3d5 /* tag_933pv */));
 }
コード例 #2
0
 public void RegisterCorrelationDataProvider(ICorrelationDataProvider correlationDataProvider)
 {
     _correlationDataProviders.Add(correlationDataProvider);
 }