Exemple #1
0
        public static void Register(
            IManager postprocessorsManager,
            IUserDefinedFormatsManager userDefinedFormatsManager,
            ITimeSeriesTypesAccess timeSeriesTypesAccess,
            IModel postprocessingModel)
        {
            var fac = userDefinedFormatsManager.Items.FirstOrDefault(f => f.FormatName == "LogJoint debug trace") as UDF;

            if (fac == null)
            {
                return;
            }
            var timeline = new LogSourcePostprocessor(
                PostprocessorKind.Timeline,
                input => RunTimelinePostprocessor(input, postprocessingModel)
                );
            var timeSeries = new LogSourcePostprocessor(
                PostprocessorKind.TimeSeries,
                input => RunTimeSeriesPostprocessor(input, postprocessingModel)
                );

            timeSeriesTypesAccess.RegisterTimeSeriesTypesAssembly(typeof(LJT.ProfilingSeries).Assembly);
            postprocessorsManager.RegisterLogType(new LogSourceMetadata(fac, new[]
            {
                timeline,
                timeSeries
            }));
        }
Exemple #2
0
 public Model(ITimeSeriesTypesAccess timeSeriesTypesAccess)
 {
     this.timeSeriesTypesAccess = timeSeriesTypesAccess;
 }
Exemple #3
0
 public PostprocessorsFactory(ITimeSeriesTypesAccess timeSeriesTypesAccess)
 {
     this.timeSeriesTypesAccess = timeSeriesTypesAccess;
 }