示例#1
0
        /// <summary>
        /// 构造函数
        /// </summary>
        public WcfPerformanceMonitorScope()
        {
            WcfPerformaceMonitorContext context;

            if (_OriginalContext == null)
            {
                context = new WcfPerformaceMonitorContext();
            }
            else
            {
                context = _OriginalContext;
            }

            pushContext(context);
        }
示例#2
0
 private void pushContext(WcfPerformaceMonitorContext context)
 {
     WcfPerformanceMonitorScope._CurrentScope = this;
     WcfPerformaceMonitorContext.Current      = context;
 }