private SqlConnection CreateConnection()
 {
     return(ConnectionUtils.CreateConnection());
 }
示例#2
0
        private ExpirationManager CreateManager(bool useMicrosoftDataSqlClient)
        {
            var storage = new SqlServerStorage(() => ConnectionUtils.CreateConnection(useMicrosoftDataSqlClient));

            return(new ExpirationManager(storage, TimeSpan.Zero));
        }
 private static DbConnection CreateConnection(bool useMicrosoftDataSqlClient)
 {
     return(ConnectionUtils.CreateConnection(useMicrosoftDataSqlClient));
 }
示例#4
0
        private static CountersAggregator CreateAggregator(bool useMicrosoftDataSqlClient)
        {
            var storage = new SqlServerStorage(() => ConnectionUtils.CreateConnection(useMicrosoftDataSqlClient));

            return(new CountersAggregator(storage, TimeSpan.Zero));
        }