Ejemplo n.º 1
0
        /// <summary>
        /// Retrieve the catalog service based on the settings.
        /// </summary>
        private static ISleetService GetCatalogService(SleetContext context)
        {
            ISleetService catalog = null;

            if (context.SourceSettings.CatalogEnabled)
            {
                // Full catalog that is written to the feed
                catalog = new Catalog(context);
            }
            else
            {
                // In memory catalog that is not written to the feed
                catalog = new VirtualCatalog(context);
            }

            return(catalog);
        }
Ejemplo n.º 2
0
 public SleetStep(ISleetService service, SleetPerfGroup perfGroup, SleetStep dependency)
 {
     Service   = service;
     PerfGroup = perfGroup;
     Dependencies.Add(dependency);
 }
Ejemplo n.º 3
0
 public SleetStep(ISleetService service)
 {
     Service = service;
 }
Ejemplo n.º 4
0
 public SleetStep(ISleetService service, SleetPerfGroup perfGroup)
 {
     Service = service;
 }
Ejemplo n.º 5
0
 public SleetStep(ISleetService service, SleetStep dependency)
 {
     Service = service;
     Dependencies.Add(dependency);
 }