/// <summary> /// Validates this instance. /// </summary> public void Validate() { ExchangeName.ThrowExceptionIf(string.IsNullOrWhiteSpace, $"{nameof(ExchangeName)} is null. You need to define while publishing."); RoutingKey.ThrowExceptionIf(string.IsNullOrWhiteSpace, $"{nameof(RoutingKey)} is null. You need to define while publishing."); }