Ejemplo n.º 1
0
        private void ExecuteRequestReconnecting(QueuedRequest request)
        {
            if (this.RunningRequestsCount < 1)
            {
                this.ExecuteHttpRequest(request);
                return;
            }

            request.Callback(HttpRequestQueueResultCode.Offline, null, request.State);
        }
Ejemplo n.º 2
0
        private void ExecuteRequestOffline(QueuedRequest request)
        {
            if (DateTime.UtcNow >= this.nextReconnectTime)
            {
                this.QueueState = HttpRequestQueueState.Reconnecting;
                this.ExecuteHttpRequest(request);
                return;
            }

            request.Callback(HttpRequestQueueResultCode.Offline, null, request.State);
        }
Ejemplo n.º 3
0
        private void ExecuteRequestOffline(QueuedRequest request)
        {
            if (DateTime.UtcNow >= this.nextReconnectTime)
            {
                this.QueueState = HttpRequestQueueState.Reconnecting;
                this.ExecuteHttpRequest(request);
                return;
            }

            request.Callback(HttpRequestQueueResultCode.Offline, null, request.State);
        }
Ejemplo n.º 4
0
        private void ExecuteRequestReconnecting(QueuedRequest request)
        {
            if (this.RunningRequestsCount < 1)
            {
                this.ExecuteHttpRequest(request);
                return;
            }

            request.Callback(HttpRequestQueueResultCode.Offline, null, request.State);
        }