Ejemplo n.º 1
0
        public PsfTracingRedirectionDescriptor(PsfTraceFixupConfig traceFixupConfig, PsfBitness psfBitness)
        {
            PsfBitness            = psfBitness;
            this.traceFixupConfig = traceFixupConfig;

            var methods = traceFixupConfig.TraceMethod?.ToLowerInvariant();

            this.BreakOn = traceFixupConfig.BreakOn;


            if (string.IsNullOrEmpty(methods))
            {
                return;
            }

            switch (methods)
            {
            case "printf":
                this.TracingType = TracingType.Console;
                break;

            case "eventlog":
                this.TracingType = TracingType.EventLog;
                break;

            default:
                this.TracingType = TracingType.Default;
                break;
            }
        }
Ejemplo n.º 2
0
        public PsfContentProcessTraceViewModel(string processRegularExpression, string fixupName, PsfTraceFixupConfig traceFixup) : base(processRegularExpression, fixupName)
        {
            this.breakOn     = new ChangeableProperty <TraceLevel>(traceFixup.BreakOn);
            this.traceMethod = new ChangeableProperty <string>(traceFixup.TraceMethod);
            this.TraceLevel  = new PsfContentTraceLevelViewModel(traceFixup.TraceLevels);

            this.AddChildren(this.breakOn, this.traceMethod, this.TraceLevel);
        }