예제 #1
0
        public static void Status(ProjectionsManager manager, string[] commandArgs)
        {
            var nameAndCredentials = GetProjectionNameAndCredentials(commandArgs);
            if (nameAndCredentials == null)
            {
                Log("Invalid arguments, should be: <projection-name> [<login> <password>].");
                return;
            }

            var name = nameAndCredentials.Item1;
            Log("{0} is '{1}'", name, manager.GetStatus(name, nameAndCredentials.Item2));
        }
예제 #2
0
 public static void Status(ProjectionsManager manager, string[] commandArgs)
 {
     var names = GetProjectionNames(commandArgs);
     foreach (var name in names)
     {
         Log("{0} is '{1}'", name, manager.GetStatus(name));
     }
 }
예제 #3
0
 Task <string> IProjectionsManagement.GetStatusAsync(string name)
 {
     Ensure.NotNullOrEmpty(name, "name");
     return(_projectionsManager.GetStatus(name));
 }