System.ArgumentException: Source array was not long enough. Check the source index, length, and the array's lower bounds.
Parameter name: sourceArray
at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable)
at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length)
at System.Collections.Generic.Queue`1.SetCapacity(Int32 capacity)
at System.Collections.Generic.Queue`1.Enqueue(T item)
at PushSharp.Apple.ApnsConnection.Send(CompletableApnsNotification notification)
at PushSharp.Apple.ApnsServiceConnection.Send(ApnsNotification notification)
What version of PushSharp are you using?
Describe your issue:
System.ArgumentException in ApnsConnection.Send() happens sometimes when call
apnsBroker.QueueNotification(apnsNotification);several thousends times in foreach loopThis happens likely because
ApnsConnection.notificationsQueue is not thread-safeWhat are the steps required to reproduce this issue?
Please provide any Exception Stack Traces