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); }
public LocalAdbServerKiller(ICommandProcedure killServerCommand) { logger = LoggerFactory.Auto <LocalAdbServerKiller>(); commandKillServer = killServerCommand ?? throw new ArgumentNullException(nameof(killServerCommand)); }
public AdbServerKiller(ICommandProcedure killServerCommand) { this.commandKillServer = killServerCommand ?? throw new ArgumentNullException(nameof(killServerCommand)); }