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); }
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; }
public RazorLanguageServerFeedbackFileLoggerProviderFactory(FeedbackLogDirectoryProvider feedbackLogDirectoryProvider) : base(feedbackLogDirectoryProvider) { }
public HTMLCSharpLanguageServerFeedbackFileLoggerProviderFactory(FeedbackLogDirectoryProvider feedbackLogDirectoryProvider) : base(feedbackLogDirectoryProvider) { }