Exemple #1
0
        protected override void RunWebRequest(QueueManager qm)
        {
            RequestState requestState = new RequestState();

            requestState.OperationType = OperationType;

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

            Uri request = BuildRequests.BuildObjectsGetAllChannelMetadataRequest(
                GetAllChannelMetadataLimit,
                GetAllChannelMetadataStart,
                GetAllChannelMetadataEnd,
                GetAllChannelMetadataCount,
                string.Join(",", includeString),
                this.PubNubInstance,
                this.QueryParams,
                GetAllChannelMetadataFilter,
                string.Join(",", sortFields)
                );

            request = this.PubNubInstance.TokenMgr.AppendTokenToURL(request.OriginalString, "", PNResourceType.PNChannelMetadata, OperationType);
            base.RunWebRequest(qm, request, requestState, this.PubNubInstance.PNConfig.NonSubscribeTimeout, 0, this);
        }