Example #1
0
 /// <summary>
 /// Adds the message tracking identifier.
 /// </summary>
 /// <param name="messageTracking">The message tracking.</param>
 public void AddMessageTrackingId(PushMessageTracking messageTracking)
 {
     lock (dataLocker)
     {
         this.AddMessageTrackingIdWithoutLocker(messageTracking);
     }
 }
Example #2
0
        /// <summary>
        /// Adds the message tracking identifier without locker.
        /// </summary>
        /// <param name="messageTracking">The message tracking.</param>
        protected void AddMessageTrackingIdWithoutLocker(PushMessageTracking messageTracking)
        {
            if (messageTracking != null && !string.IsNullOrWhiteSpace(messageTracking.MessageId))
            {
                int index;

                if (FindMessageTrackingByIdWithoutLocker(messageTracking.MessageId, out index) == null)
                {
                    this.pushMessageTrackingList.Add(messageTracking);
                }
            }
        }