protected override void RunWebRequest(QueueManager qm)
        {
            RequestState requestState = new RequestState();

            requestState.OperationType = OperationType;

            string[]      includeString = (GetMembershipsInclude == null) ? new string[] {} : GetMembershipsInclude.Select(a => a.GetDescription().ToString()).ToArray();
            List <string> sortFields    = SortBy ?? new List <string>();

            Uri request = BuildRequests.BuildObjectsGetMembershipsRequest(
                GetMembershipsUserID,
                GetMembershipsLimit,
                GetMembershipsStart,
                GetMembershipsEnd,
                GetMembershipsCount,
                string.Join(",", includeString),
                this.PubNubInstance,
                this.QueryParams,
                GetMembershipsFilter,
                string.Join(",", sortFields)
                );

            request = this.PubNubInstance.TokenMgr.AppendTokenToURL(request.OriginalString, GetMembershipsUserID, PNResourceType.PNUsers, OperationType);
            base.RunWebRequest(qm, request, requestState, this.PubNubInstance.PNConfig.NonSubscribeTimeout, 0, this);
        }
Пример #2
0
        protected override void RunWebRequest(QueueManager qm)
        {
            RequestState requestState = new RequestState();

            requestState.OperationType = OperationType;

            string[] includeString = (GetMembershipsInclude == null) ? new string[] {} : GetMembershipsInclude.Select(a => a.GetDescription().ToString()).ToArray();

            Uri request = BuildRequests.BuildObjectsGetMembershipsRequest(
                GetMembershipsUserID,
                GetMembershipsLimit,
                GetMembershipsStart,
                GetMembershipsEnd,
                GetMembershipsCount,
                string.Join(",", includeString),
                this.PubNubInstance,
                this.QueryParams
                );

            base.RunWebRequest(qm, request, requestState, this.PubNubInstance.PNConfig.NonSubscribeTimeout, 0, this);
        }