//////////////////////////////////////////////////////////////////////
        /// <summary>Parses options</summary>
        /// <param name="argName">option name</param>
        /// <param name="argValue">option value</param>
        /// <returns>true if the option was understood and parsed, false
        /// if the option was not understood.</returns>
        //////////////////////////////////////////////////////////////////////
        protected virtual bool ParseArg(string argName, string argValue)
        {
            switch (argName)
            {
            case "--url":
                uriFactory = new GBaseUriFactory(new Uri(new Uri(argValue), "/base/"));
                return true;

            case "--key":
                developerKey = argValue;
                return true;
            }
            return false;
        }
        public BatchCommand(GBaseService service,
                            GBaseUriFactory uriFactory)
                : base(service, uriFactory)
        {

        }
 protected CommandBase(GBaseService service, GBaseUriFactory uriFactory)
 {
     this.service = service;
     this.uriFactory = uriFactory;
 }
 public GetCommand(GBaseService service,
                   GBaseUriFactory uriFactory,
                   string url)
         : base(service, uriFactory)
 {
     this.url = url;
 }
 public UpdateCommand(GBaseService service,
                      GBaseUriFactory uriFactory)
         : base(service, uriFactory)
 {
 }
        public InsertCommand(GBaseService service, GBaseUriFactory uriFactory)
                : base(service, uriFactory)
        {

        }
 public DeleteCommand(GBaseService service,
                      GBaseUriFactory uriFactory,
                      string uri)
         : base(service, uriFactory)
 {
     this.uri = new Uri(uri);
 }
 public QueryCommand(GBaseService service,
                     GBaseUriFactory uriFactory,
                     string queryString)
         : base(service, uriFactory)
 {
     this.queryString = queryString;
 }