Esempio n. 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="req"></param>
        public override void OnDispatching(IServiceRequest req)
        {
            var ctx = MonitorContext.Current;

            var data = new PerformanceInfo();

            data.ServiceName   = req.ServiceName;
            data.OperationName = req.OperationName;
            ctx.Data           = data;

            ctx.DispatchStopwatch.Start();
        }
Esempio n. 2
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="req"></param>
        public override void OnDispatching(IServiceRequest req)
        {
            var ctx = MonitorContext.Current;

            var data = new PerformanceInfo();
            data.ServiceName = req.ServiceName;
            data.OperationName = req.OperationName;
            ctx.Data = data;

            ctx.DispatchStopwatch.Start();
        }