public LogSourceRecord(ILogSource logSource, LogSourceMetadata metadata) { this.logSource = logSource; this.metadata = metadata; this.logFileName = logSource.Provider.ConnectionParams[ConnectionParamsKeys.PathConnectionParam]; this.cancellation = new CancellationTokenSource(); }
public LogSourcePostprocessorOutput GetData(ILogSource logSource, LogSourceMetadata sourceType) { LogSourcePostprocessorOutput ret = new LogSourcePostprocessorOutput(); ret.LogSource = logSource; ret.PostprocessorMetadata = Metadata; ret.LogSourceMeta = sourceType; ret.OutputStatus = status; if (postprocessorProgress != null) { ret.Progress = postprocessorProgress.ProgressValue; } ret.OutputData = outputData; ret.LastRunSummary = lastRunSummary; return(ret); }
void IManager.RegisterLogType(LogSourceMetadata meta) { this.knownLogTypes[meta.LogProviderFactory] = meta; }
static string MakeLogSourcePostprocessorFeatureId(LogSourceMetadata logSource, ILogSourcePostprocessor postproc) { return(string.Format(@"postprocessor\{0}\{1}\{2}", logSource.LogProviderFactory.CompanyName, logSource.LogProviderFactory.FormatName, postproc.Kind.ToString())); }
void IManager.RegisterLogType(LogSourceMetadata meta) { ((IManager)this).Register(meta); }
void IManager.Register(LogSourceMetadata meta) { knownLogTypes = this.knownLogTypes.Add(meta.LogProviderFactory, meta); }