Beispiel #1
0
        public RestifizerRequest ResourceAt(string resourceName)
        {
            RestifizerRequest restifizerRequest = new RestifizerRequest(this, (IErrorHandler)errorHandler);

            restifizerRequest.FetchList = true;
            restifizerRequest.Path     += baseUrl + "/" + resourceName;
            return(restifizerRequest);
        }
Beispiel #2
0
        public RestifizerRequest Copy()
        {
            RestifizerRequest restifizerRequest = new RestifizerRequest(restifizerParams, errorHandler);

            restifizerRequest.Path       = Path;
            restifizerRequest.Method     = Method;
            restifizerRequest.Tag        = Tag;
            restifizerRequest.PageNumber = PageNumber;
            restifizerRequest.PageSize   = PageSize;
            restifizerRequest.FetchList  = FetchList;
            if (filterParams != null)
            {
                restifizerRequest.filterParams = filterParams.Clone() as Hashtable;
            }
            if (extraQuery != null)
            {
                restifizerRequest.extraQuery = extraQuery.Clone() as Hashtable;
            }
            restifizerRequest.authType = authType;
            return(restifizerRequest);
        }