public static void List(ProjectionsManager manager, string[] commandArgs) { if (commandArgs.Length != 1) { Log("Invalid argument value for list mode"); return; } var mode = commandArgs[0].Trim().ToLower(); switch (mode) { case "all": Log("Listing all projections..."); LogUnformatted(manager.ListAll()); Log("All projections listed"); break; case "onetime": Log("Listing onetime projections..."); LogUnformatted(manager.ListOneTime()); Log("Onetime projections listed"); break; case "continuous": Log("Listing continuous projections..."); LogUnformatted(manager.ListContinuous()); Log("Continuous projections listed"); break; default: Log("List mode not recognized"); break; } }
Task <string> IProjectionsManagement.ListContinuousAsync() { return(_projectionsManager.ListContinuous()); }