protected override void RunWebRequest(QueueManager qm) { RequestState requestState = new RequestState(); requestState.OperationType = OperationType; Uri request; if (PushType.Equals(PNPushType.APNS2)) { request = BuildRequests.BuildRegisterDevicePushRequest( string.Join(",", ChannelsToUse.ToArray()), PushType, DeviceIDForPush, this.PubNubInstance, this.QueryParams, TopicForPush, EnvironmentForPush ); } else { request = BuildRequests.BuildRegisterDevicePushRequest( string.Join(",", ChannelsToUse.ToArray()), PushType, DeviceIDForPush, 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; Uri request = BuildRequests.BuildRegisterDevicePushRequest( string.Join(",", ChannelsToUse.ToArray()), PushType, DeviceIDForPush, this.PubNubInstance ); base.RunWebRequest(qm, request, requestState, this.PubNubInstance.PNConfig.NonSubscribeTimeout, 0, this); }