Beispiel #1
0
    public void MassQueue(List <string> data)
    {
        if (Failed > 3)
        {
            return;
        }

        for (int i = data.Count - 1; i > -1; i--)
        {
            Data += (Data == "" ? "" : "~") + data[i];
            data.RemoveAt(i);

            if (Data.Length > 300)
            {
                Playtomic_LogRequest request = Create();
                request.MassQueue(data);

                Ready = true;
                Send();
                return;
            }
        }

        Playtomic.Log.Request = this;
    }
Beispiel #2
0
    public void ForceSend()
    {
        if (!Enabled)
        {
            return;
        }

        Request.Send();
        Request = Playtomic_LogRequest.Create();

        if (_errorQueue.Count > 0)
        {
            // Add the errors to the frozen queue. We don't attempt to mass
            // queue the error queue directly since, if there is a connection
            // problem, we'll end up in an endless loop with an ever-growing
            // error list.
            FrozenQueue.AddRange(_errorQueue);
            _errorQueue.Clear();
        }
        if (FrozenQueue.Count > 0)
        {
            Request.MassQueue(FrozenQueue);
        }
    }
Beispiel #3
0
    public void ForceSend()
    {
        if(!Enabled)
            return;

        Request.Send();
        Request = Playtomic_LogRequest.Create();

        if(FrozenQueue.Count > 0)
            Request.MassQueue(FrozenQueue);
    }
Beispiel #4
0
 public void UnFreeze()
 {
     Frozen = false;
     Request.MassQueue(FrozenQueue);
 }
    public void ForceSend()
    {
        if(!Enabled)
            return;

        Request.Send();
        Request = Playtomic_LogRequest.Create();

        if (_errorQueue.Count > 0)
        {
            // Add the errors to the frozen queue. We don't attempt to mass
            // queue the error queue directly since, if there is a connection
            // problem, we'll end up in an endless loop with an ever-growing
            // error list.
            FrozenQueue.AddRange(_errorQueue);
            _errorQueue.Clear();
        }
        if(FrozenQueue.Count > 0)
        {
            Request.MassQueue(FrozenQueue);
        }
    }