/// <summary> /// Adds the message tracking identifier. /// </summary> /// <param name="messageTracking">The message tracking.</param> public void AddMessageTrackingId(PushMessageTracking messageTracking) { lock (dataLocker) { this.AddMessageTrackingIdWithoutLocker(messageTracking); } }
/// <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); } } }