in src/Microsoft.Azure.NotificationHubs/Messaging/AuthorizationRule.cs [190:203]
internal void Validate()
{
if (this.Rights == null || !this.Rights.Any<AccessRights>() || this.Rights.Count<AccessRights>() > 3)
{
throw new InvalidDataContractException(string.Format(SRClient.NullEmptyRights, 3));
}
if (!AuthorizationRule.AreAccessRightsUnique(this.Rights))
{
throw new InvalidDataContractException(SRClient.CannotHaveDuplicateAccessRights);
}
this.OnValidate();
}