Exemplo n.º 1
0
        public FeedbackFileLoggerProviderFactoryBase(FeedbackLogDirectoryProvider feedbackLogDirectoryProvider)
        {
            if (feedbackLogDirectoryProvider is null)
            {
                throw new ArgumentNullException(nameof(feedbackLogDirectoryProvider));
            }

            _feedbackLogDirectoryProvider = feedbackLogDirectoryProvider;
            _creationLock = new object();
        }
        public DefaultFeedbackFileLogWriter(FeedbackLogDirectoryProvider feedbackLogDirectoryProvider, string logFileIdentifier)
        {
            if (feedbackLogDirectoryProvider is null)
            {
                throw new ArgumentNullException(nameof(feedbackLogDirectoryProvider));
            }

            _logs         = new ConcurrentQueue <string>();
            _logSemaphore = new SemaphoreSlim(0);
            _writeToLock  = new object();
            _feedbackLogDirectoryProvider = feedbackLogDirectoryProvider;

            InitializeLogFile(logFileIdentifier);

            _logWriterTask = Task.Run(WriteToLogAsync);
        }
Exemplo n.º 3
0
        public RazorFeedbackDiagnosticFileProvider(
            JoinableTaskContext joinableTaskContext,
            FeedbackLogDirectoryProvider feedbackLogDirectoryProvider)
        {
            if (joinableTaskContext is null)
            {
                throw new ArgumentNullException(nameof(joinableTaskContext));
            }

            if (feedbackLogDirectoryProvider is null)
            {
                throw new ArgumentNullException(nameof(feedbackLogDirectoryProvider));
            }

            _feedbackLogDirectoryProvider = feedbackLogDirectoryProvider;
            _joinableTaskFactory          = joinableTaskContext.Factory;
        }
Exemplo n.º 4
0
 public RazorLanguageServerFeedbackFileLoggerProviderFactory(FeedbackLogDirectoryProvider feedbackLogDirectoryProvider)
     : base(feedbackLogDirectoryProvider)
 {
 }
Exemplo n.º 5
0
 public HTMLCSharpLanguageServerFeedbackFileLoggerProviderFactory(FeedbackLogDirectoryProvider feedbackLogDirectoryProvider)
     : base(feedbackLogDirectoryProvider)
 {
 }