1
Vote

Add default method to create Transactions

description

At the moment, the only method available on the Provider to create a transaction accepts the DateTimeOffset parameter - public abstract ITransaction CreateTransaction(DateTimeOffset timestamp);
 
Another method which do not accept any parameters can be added and then the default date time can be added inside of that method. Just add the following method inside the MonengineProviderBase class:
 
/// <summary>
/// Creates a transaction
/// </summary>
/// <returns>A new transaction</returns>
public virtual ITransaction CreateTransaction()
{
     return this.CreateTransaction(DateTimeOffset.Now);
}
 
That should make it easier to create a transaction and also a bit less code.

comments