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

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

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

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

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

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

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

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

            return(rslt.Success);
        }