protected override void RunWebRequest(QueueManager qm) { RequestState requestState = new RequestState(); requestState.OperationType = OperationType; string[] includeString = (GetSpacesInclude == null) ? new string[] {} : GetSpacesInclude.Select(a => a.GetDescription().ToString()).ToArray(); Uri request = BuildRequests.BuildObjectsGetSpacesRequest( GetSpacesLimit, GetSpacesStart, GetSpacesEnd, GetSpacesCount, string.Join(",", includeString), this.PubNubInstance, this.QueryParams ); base.RunWebRequest(qm, request, requestState, this.PubNubInstance.PNConfig.NonSubscribeTimeout, 0, this); }
protected override void RunWebRequest(QueueManager qm) { RequestState requestState = new RequestState(); requestState.OperationType = OperationType; string[] includeString = (GetSpacesInclude == null) ? new string[] {} : GetSpacesInclude.Select(a => a.GetDescription().ToString()).ToArray(); List <string> sortFields = SortBy ?? new List <string>(); Uri request = BuildRequests.BuildObjectsGetSpacesRequest( GetSpacesLimit, GetSpacesStart, GetSpacesEnd, GetSpacesCount, string.Join(",", includeString), this.PubNubInstance, this.QueryParams, GetSpacesFilter, string.Join(",", sortFields) ); request = this.PubNubInstance.TokenMgr.AppendTokenToURL(request.OriginalString, "", PNResourceType.PNSpaces, OperationType); base.RunWebRequest(qm, request, requestState, this.PubNubInstance.PNConfig.NonSubscribeTimeout, 0, this); }