/// <summary> /// Validates that DeliveryOptions are initialized and performs some extra integrity validations. /// </summary> /// <param name="deliveryOptions">DeliveryOptions object to be validated</param> private static void Validate(this DeliveryOptions deliveryOptions) { if (deliveryOptions == null) { throw new Exception($"You have to provide at least the '{nameof(DeliveryOptions.ProjectId)}' argument. {SeePart(false)}"); } DeliveryOptionsValidator.Validate(deliveryOptions); }
/// <summary> /// Validates that DeliveryOptions are initialized and performs some extra integrity validations. /// </summary> /// <param name="deliveryOptions">DeliveryOptions object to be validated</param> public static void Validate(this DeliveryOptions deliveryOptions) { if (deliveryOptions == null) { throw new Exception($"You have to provide at least the '{nameof(DeliveryOptions.ProjectId)}' argument. See http://bit.ly/k-params for more details on configuration."); } else { DeliveryOptionsValidator.Validate(deliveryOptions); } }
/// <summary> /// Validates that DeliveryOptions are initialized and performs some extra integrity validations. /// </summary> /// <param name="deliveryOptions">DeliveryOptions object to be validated</param> public static void Validate(this DeliveryOptions deliveryOptions) { if (deliveryOptions == null) { throw new Exception("You have to define 'DeliveryOptions' section in your config file or at least provide a Project ID."); } else { DeliveryOptionsValidator.Validate(deliveryOptions); } }