Ejemplo n.º 1
0
        static bool UnbindService(IList <string> unparsed)
        {
            if (unparsed.Count != 2)
            {
                Console.Error.WriteLine("Usage: vmc unbind-service <servicename> <appname>");
                return(false);
            }

            string svcname = unparsed[0];
            string appname = unparsed[1];

            IVcapClient      vc   = new VcapClient();
            VcapClientResult rslt = vc.UnbindService(svcname, appname);

            return(rslt.Success);
        }
Ejemplo n.º 2
0
        static bool UnbindService(IList <string> unparsed)
        {
            // TODO match ruby argument parsing
            if (unparsed.Count != 2)
            {
                Console.Error.WriteLine("Usage: vmc unbind-service <servicename> <appname>"); // TODO usage statement standardization
                return(false);
            }

            string svcname = unparsed[0];
            string appname = unparsed[1];

            IVcapClient      vc   = new VcapClient();
            VcapClientResult rslt = vc.UnbindService(svcname, appname);

            return(rslt.Success);
        }
Ejemplo n.º 3
0
        static bool UnbindService(IList<string> unparsed)
        {
            // TODO match ruby argument parsing
            if (unparsed.Count != 2)
            {
                Console.Error.WriteLine("Usage: vmc unbind-service <servicename> <appname>"); // TODO usage statement standardization
                return false;
            }

            string svcname = unparsed[0];
            string appname = unparsed[1];

            IVcapClient vc = new VcapClient();
            VcapClientResult rslt = vc.UnbindService(svcname, appname);
            return rslt.Success;
        }