AdjustSdk.Pcl.PackageHandler.CloseFirstPackage C# (CSharp) Method

CloseFirstPackage() public method

public CloseFirstPackage ( ) : void
return void
        public void CloseFirstPackage()
        {
            InternalWaitHandle.Set(); // open the door (signals the wait handle)
        }

Usage Example

Beispiel #1
0
        private void PackageSent(Task <SendResponse> SendTask)
        {
            // status needs to be tested before reading the result.
            // section "Passing data to a continuation" of
            // http://msdn.microsoft.com/en-us/library/ee372288(v=vs.110).aspx
            var successRunning =
                !SendTask.IsFaulted &&
                !SendTask.IsCanceled;

            if (successRunning && SendTask.Result.JsonDict != null)
            {
                PackageHandler.FinishedTrackingActivity(SendTask.Result.JsonDict);
            }

            //Logger.Debug("SendTask.Result.WillRetry {0}", SendTask.Result.WillRetry);
            if (successRunning && !SendTask.Result.WillRetry)
            {
                PackageHandler.SendNextPackage();
            }
            else
            {
                PackageHandler.CloseFirstPackage();
            }
        }