in FirebaseAdmin/FirebaseAdmin/Messaging/InstanceIdClient.cs [136:161]
private void ValidateRegistrationTokenList(IReadOnlyList<string> registrationTokens)
{
if (registrationTokens == null)
{
throw new ArgumentNullException("Registration token list must not be null");
}
var count = registrationTokens.Count;
if (count == 0)
{
throw new ArgumentException("Registration token list must not be empty");
}
if (count > 1000)
{
throw new ArgumentException("Registration token list must not contain more than 1000 tokens");
}
foreach (var registrationToken in registrationTokens)
{
if (string.IsNullOrEmpty(registrationToken))
{
throw new ArgumentException("Registration tokens must not be null or empty");
}
}
}