Endjin.Assembly.ChangeDetection.Infrastructure.Tracer.Tracer C# (CSharp) Method

Tracer() public method

Create a new Tracer which traces method enter and leave (on Dispose)
public Tracer ( Level level, TypeHashes type, string method ) : System
level Level Trace Level. 1 is the high level overview, 5 is for high volume detailed traces.
type TypeHashes /// TypeHandle instance which identifies your class type. This instance should be a static instance of /// your type. ///
method string The method name of your current method.
return System
        public Tracer(Level level, TypeHashes type, string method)
        {
            if (type == null)
            {
                throw new ArgumentNullException("type");
            }
            if (method == null)
            {
                throw new ArgumentNullException("method");
            }

            this.myEnterTime = DateTime.MinValue;
            this.myMethod = method;
            this.myType = type;
            this.myLevel = level;
            this.myTypeMethodName = null;

            if (TracerConfig.Instance.IsEnabled(this.myType, MessageTypes.InOut, this.myLevel))
            {
                this.myEnterTime = DateTime.Now;
                TraceMsg(MsgTypeIn, this.TypeMethodName, this.myEnterTime, null, null);
            }
        }

Same methods

Tracer::Tracer ( TypeHashes type, string method ) : System