Esempio n. 1
0
 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);
            }
Esempio n. 3
0
 void IManager.RegisterLogType(LogSourceMetadata meta)
 {
     this.knownLogTypes[meta.LogProviderFactory] = meta;
 }
Esempio n. 4
0
 static string MakeLogSourcePostprocessorFeatureId(LogSourceMetadata logSource, ILogSourcePostprocessor postproc)
 {
     return(string.Format(@"postprocessor\{0}\{1}\{2}",
                          logSource.LogProviderFactory.CompanyName, logSource.LogProviderFactory.FormatName, postproc.Kind.ToString()));
 }
Esempio n. 5
0
 void IManager.RegisterLogType(LogSourceMetadata meta)
 {
     ((IManager)this).Register(meta);
 }
Esempio n. 6
0
 void IManager.Register(LogSourceMetadata meta)
 {
     knownLogTypes = this.knownLogTypes.Add(meta.LogProviderFactory, meta);
 }