/// <summary> /// Initializes a new instance of the <see cref="GetOfflinePendingTransactionCountProcedure"/> class. /// </summary> /// <param name="request">The request object.</param> /// <param name="databaseContext">The database context object.</param> public GetOfflinePendingTransactionCountProcedure(GetOfflinePendingTransactionCountDataRequest request, SqlServerDatabaseContext databaseContext) { this.request = request; this.databaseContext = databaseContext; }
private GetOfflinePendingTransactionCountDataResponse GetOfflinePendingTransactionCount(GetOfflinePendingTransactionCountDataRequest request) { using (SqlServerDatabaseContext databaseContext = new SqlServerDatabaseContext(request)) { GetOfflinePendingTransactionCountProcedure getOfflinePendingTransactionCountProcedure = new GetOfflinePendingTransactionCountProcedure(request, databaseContext); return(getOfflinePendingTransactionCountProcedure.GetPendingTransactionCount()); } }