public RetrySqlCommandWrapper(SqlCommandWrapper sqlCommandWrapper, IAsyncPolicy retryPolicy)
            : base(sqlCommandWrapper)
        {
            EnsureArg.IsNotNull(sqlCommandWrapper, nameof(sqlCommandWrapper));
            EnsureArg.IsNotNull(retryPolicy, nameof(retryPolicy));

            _sqlCommandWrapper = sqlCommandWrapper;
            _retryPolicy       = retryPolicy;
        }
Exemple #2
0
        protected SqlCommandWrapper(SqlCommandWrapper sqlCommandWrapper)
        {
            EnsureArg.IsNotNull(sqlCommandWrapper, nameof(sqlCommandWrapper));

            _sqlCommand = sqlCommandWrapper._sqlCommand;
        }