Ejemplo 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();
 }
Ejemplo n.º 2
0
            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);
            }
Ejemplo n.º 3
0
 void IManager.RegisterLogType(LogSourceMetadata meta)
 {
     this.knownLogTypes[meta.LogProviderFactory] = meta;
 }
Ejemplo 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()));
 }
Ejemplo n.º 5
0
 void IManager.RegisterLogType(LogSourceMetadata meta)
 {
     ((IManager)this).Register(meta);
 }
Ejemplo n.º 6
0
 void IManager.Register(LogSourceMetadata meta)
 {
     knownLogTypes = this.knownLogTypes.Add(meta.LogProviderFactory, meta);
 }