/// <summary> /// 构造函数 /// </summary> public WcfPerformanceMonitorScope() { WcfPerformaceMonitorContext context; if (_OriginalContext == null) { context = new WcfPerformaceMonitorContext(); } else { context = _OriginalContext; } pushContext(context); }
private void pushContext(WcfPerformaceMonitorContext context) { WcfPerformanceMonitorScope._CurrentScope = this; WcfPerformaceMonitorContext.Current = context; }