/// <summary> /// Checks if the aggregate reference can be correctly parsed and contains some data. /// </summary> /// <param name="entity">Entity with an aggregate reference.</param> /// <returns>True if the aggregate reference is valid.</returns> public static bool IsDataAvailableFromAggregateReference(this IEntityWithAggregateReference entity) => JwtHelper.CheckIfJwtStringContainsData(entity.AggregateReference);