Example #1
0
        private TelemetryDaemonEventListener(
            string providerName,
            string enlistmentId,
            string pipeName,
            IEventListenerEventSink eventSink)
            : base(EventLevel.Verbose, Keywords.Telemetry, eventSink)
        {
            this.providerName = providerName;
            this.enlistmentId = enlistmentId;
            this.vfsVersion   = ProcessHelper.GetCurrentProcessVersion();

            this.pipeWriter = new QueuedPipeStringWriter(
                () => new NamedPipeClientStream(".", pipeName, PipeDirection.Out, PipeOptions.Asynchronous),
                this);
            this.pipeWriter.Start();
        }
Example #2
0
 public TestEventListener(EventLevel maxVerbosity, Keywords keywordFilter, IEventListenerEventSink eventSink)
     : base(maxVerbosity, keywordFilter, eventSink)
 {
 }
Example #3
0
        public static TelemetryDaemonEventListener CreateIfEnabled(string gitBinRoot, string providerName, string enlistmentId, string mountId, IEventListenerEventSink eventSink)
        {
            // This listener is disabled unless the user specifies the proper git config setting.
            string telemetryPipe = GetConfigValue(gitBinRoot, GSDConstants.GitConfig.GSDTelemetryPipe);

            if (!string.IsNullOrEmpty(telemetryPipe))
            {
                return(new TelemetryDaemonEventListener(providerName, enlistmentId, mountId, telemetryPipe, eventSink));
            }
            else
            {
                return(null);
            }
        }
 public PrettyConsoleEventListener(EventLevel maxVerbosity, Keywords keywordFilter, IEventListenerEventSink eventSink)
     : base(maxVerbosity, keywordFilter, eventSink)
 {
 }
 public LogFileEventListener(string logFilePath, EventLevel maxVerbosity, Keywords keywordFilter, IEventListenerEventSink eventSink)
     : base(maxVerbosity, keywordFilter, eventSink)
 {
     this.SetLogFilePath(logFilePath);
 }
Example #6
0
 protected EventListener(EventLevel maxVerbosity, Keywords keywordFilter, IEventListenerEventSink eventSink)
 {
     this.maxVerbosity  = maxVerbosity;
     this.keywordFilter = keywordFilter;
     this.eventSink     = eventSink;
 }