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;
 }
Beispiel #2
0
        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);
        }
Beispiel #3
0
 bool IsAzureTransport()
 {
     return(TransportDefinition.GetType().Name.ToLower().Contains("azure"));
 }