コード例 #1
0
		protected bool OnTracing(TraceEntry entry)
		{
			try
			{
				TracingEventArgs args = new TracingEventArgs(entry);
				this.OnTracing(args);
				return args.Cancel;
			}
			catch(Exception ex)
			{
				this.OnFailed(new FailureEventArgs(ex, entry));
				return false;
			}
		}
コード例 #2
0
		protected virtual void OnTracing(TracingEventArgs args)
		{
			if(this.Tracing != null)
				this.Tracing(this, args);
		}