public SqlServerCommandProcedureWithRetry(IDataComponentFactory factory, RetryOptions retryOptions)
        {
            var instance = new CommandProcedure(factory);

            _proxy = RetryProxy.Create <ICommandProcedure>(instance, retryOptions, new SqlServerTransientErrorTester());
        }
        public SqlServerCommandProcedureWithRetry(DbConnection dbConnection, RetryOptions retryOptions)
        {
            var instance = new CommandProcedure(dbConnection, new SqlServerParameterFactory());

            _proxy = RetryProxy.Create <ICommandProcedure>(instance, retryOptions, new SqlServerTransientErrorTester());
        }
        public SqlServerCommandProcedureWithRetry(IDataComponentFactory factory, SqlServerTransientRetryPolicy retryPolicy)
        {
            var instance = new CommandProcedure(factory);

            _proxy = RetryProxy.Create <ICommandProcedure>(instance, retryPolicy);
        }
        public SqlServerCommandProcedureWithRetry(DbConnection dbConnection, SqlServerTransientRetryPolicy retryPolicy)
        {
            var instance = new CommandProcedure(dbConnection, new SqlServerParameterFactory());

            _proxy = RetryProxy.Create <ICommandProcedure>(instance, retryPolicy);
        }
Esempio n. 5
0
 public LocalAdbServerKiller(ICommandProcedure killServerCommand)
 {
     logger            = LoggerFactory.Auto <LocalAdbServerKiller>();
     commandKillServer = killServerCommand ?? throw new ArgumentNullException(nameof(killServerCommand));
 }
Esempio n. 6
0
 public AdbServerKiller(ICommandProcedure killServerCommand)
 {
     this.commandKillServer = killServerCommand ?? throw new ArgumentNullException(nameof(killServerCommand));
 }