/// <summary> /// Build pipeline steps. /// </summary> private static List <SleetStep> GetSteps(SleetContext context) { var result = new List <SleetStep>(); var catalog = new SleetStep(GetCatalogService(context), SleetPerfGroup.Catalog); result.Add(catalog); if (context.SourceSettings.SymbolsEnabled) { result.Add(new SleetStep(new Symbols(context), SleetPerfGroup.Symbols)); } result.Add(new SleetStep(new FlatContainer(context), SleetPerfGroup.FlatContainer)); result.Add(new SleetStep(new AutoComplete(context), SleetPerfGroup.AutoComplete)); result.Add(new SleetStep(new PackageIndex(context), SleetPerfGroup.PackageIndex)); // Registration depends on catalog pages var registrations = new SleetStep(new Registrations(context), SleetPerfGroup.Registration, catalog); result.Add(registrations); // Search depends on registation files var search = new SleetStep(new Search(context), SleetPerfGroup.Search, registrations); result.Add(search); return(result); }
public SleetStep(ISleetService service, SleetPerfGroup perfGroup, SleetStep dependency) { Service = service; PerfGroup = perfGroup; Dependencies.Add(dependency); }
public SleetStep(ISleetService service, SleetStep dependency) { Service = service; Dependencies.Add(dependency); }