Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DBSemaphore"/> class.
 /// </summary>
 /// <param name="tablePrefix">The table prefix.</param>
 /// <param name="sql">The SQL.</param>
 /// <param name="defaultSQL">The default SQL.</param>
 /// <param name="dbProvider">The db provider.</param>
 public DBSemaphore(string tablePrefix, string sql, string defaultSQL, IDbProvider dbProvider) {
     log = LogManager.GetLogger(GetType());
     this.sql = defaultSQL;
     this.tablePrefix = tablePrefix;
     SQL = sql;
     adoUtil = new AdoUtil(dbProvider);
 }
Esempio n. 2
0
 /// <summary>
 /// Create new StdAdoDelegate instance.
 /// </summary>
 /// <param name="logger">the logger to use during execution</param>
 /// <param name="tablePrefix">the prefix of all table names</param>
 /// <param name="instanceId">The instance id.</param>
 /// <param name="dbProvider">The db provider.</param>
 /// <param name="useProperties">if set to <c>true</c> [use properties].</param>
 public StdAdoDelegate(ILog logger, string tablePrefix, string instanceId, IDbProvider dbProvider,
                       bool useProperties)
 {
     this.logger = logger;
     this.tablePrefix = tablePrefix;
     this.instanceId = instanceId;
     this.dbProvider = dbProvider;
     adoUtil = new AdoUtil(dbProvider);
     this.useProperties = useProperties;
 }