Пример #1
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="callContextManager">Call context manager</param>
        /// <param name="machineInformation">Machine information</param>
        public TimedScopeStackManager(ICallContextManager callContextManager, IMachineInformation machineInformation)
        {
            Code.ExpectsArgument(callContextManager, nameof(callContextManager), TaggingUtilities.ReserveTag(0x2381705f /* tag_96xb5 */));
            Code.ExpectsArgument(machineInformation, nameof(machineInformation), TaggingUtilities.ReserveTag(0x23817060 /* tag_96xb6 */));

            CallContextManager = callContextManager;
            MachineInformation = machineInformation;
        }
Пример #2
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="correlationHandler">correlation handler, used to store correlation data in underlying logging system</param>
        /// <param name="callContextManager">call context manager, to handle context operations</param>
        /// <param name="machineInformation">machine information</param>
        public Correlation(ICorrelationStorage correlationHandler, ICallContextManager callContextManager, IMachineInformation machineInformation)
        {
            Code.ExpectsArgument(correlationHandler, nameof(correlationHandler), TaggingUtilities.ReserveTag(0x2381771b /* tag_96x21 */));
            Code.ExpectsArgument(callContextManager, nameof(callContextManager), TaggingUtilities.ReserveTag(0x2381771c /* tag_96x22 */));
            Code.ExpectsArgument(machineInformation, nameof(machineInformation), TaggingUtilities.ReserveTag(0x2381771d /* tag_96x23 */));

            CorrelationHandler = correlationHandler;
            CallContextManager = callContextManager;
            MachineInformation = machineInformation;
        }