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);
        }
Пример #5
0
 public LocalAdbServerKiller(ICommandProcedure killServerCommand)
 {
     logger            = LoggerFactory.Auto <LocalAdbServerKiller>();
     commandKillServer = killServerCommand ?? throw new ArgumentNullException(nameof(killServerCommand));
 }
Пример #6
0
 public AdbServerKiller(ICommandProcedure killServerCommand)
 {
     this.commandKillServer = killServerCommand ?? throw new ArgumentNullException(nameof(killServerCommand));
 }