/// <summary>
        /// Connection string to use for timeouts storage.
        /// </summary>
        public static PersistenceExtentions <AzureStoragePersistence, StorageType.Timeouts> ConnectionString(this PersistenceExtentions <AzureStoragePersistence, StorageType.Timeouts> config, string connectionString)
        {
            AzureTimeoutStorageGuard.CheckConnectionString(connectionString);

            config.GetSettings().Set("AzureTimeoutStorage.ConnectionString", connectionString);
            return(config);
        }
Exemple #2
0
 public void Should_not_allow_invalid_connection_string(string connectionString)
 {
     Assert.Throws <ArgumentException>(() => AzureTimeoutStorageGuard.CheckConnectionString(connectionString));
 }