Пример #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();
        }
Пример #2
0
 public TestEventListener(EventLevel maxVerbosity, Keywords keywordFilter, IEventListenerEventSink eventSink)
     : base(maxVerbosity, keywordFilter, eventSink)
 {
 }
Пример #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)
 {
 }
Пример #5
0
 public LogFileEventListener(string logFilePath, EventLevel maxVerbosity, Keywords keywordFilter, IEventListenerEventSink eventSink)
     : base(maxVerbosity, keywordFilter, eventSink)
 {
     this.SetLogFilePath(logFilePath);
 }
Пример #6
0
 protected EventListener(EventLevel maxVerbosity, Keywords keywordFilter, IEventListenerEventSink eventSink)
 {
     this.maxVerbosity  = maxVerbosity;
     this.keywordFilter = keywordFilter;
     this.eventSink     = eventSink;
 }