public string GetConnectionStringOrRaiseError(TransportDefinition transportDefinition) { var connectionString = GetValue(); if (connectionString == null && transportDefinition.RequiresConnectionString) { throw new InvalidOperationException(string.Format(Message, transportDefinition.GetType().Name, transportDefinition.ExampleConnectionStringForErrorMessage)); } return connectionString; }
public string GetConnectionStringOrRaiseError(TransportDefinition transportDefinition) { var connectionString = GetValue(); if (connectionString == null && transportDefinition.RequiresConnectionString) { throw new InvalidOperationException(string.Format(Message, transportDefinition.GetType().Name, transportDefinition.ExampleConnectionStringForErrorMessage)); } return(connectionString); }
bool IsAzureTransport() { return(TransportDefinition.GetType().Name.ToLower().Contains("azure")); }