예제 #1
0
        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;
            }
        }
예제 #2
0
 Task <string> IProjectionsManagement.ListAllAsync()
 {
     return(_projectionsManager.ListAll());
 }
예제 #3
0
 Task <string> IProjectionsManagement.ListAllAsync()
 {
     return(_projectionsManager.ListAll(_httpEndPoint));
 }