public Builder(ITransactionBuilderAccount sourceAccount) : base(sourceAccount) { }
/// <summary> /// Construct a new transaction builder. /// </summary> /// <param name="sourceAccount"> /// The source account for this transaction. This account is the account /// who will use a sequence number. When Build() is called, the account object's sequence number /// will be incremented. /// </param> public Builder(ITransactionBuilderAccount sourceAccount) { SourceAccount = CheckNotNull(sourceAccount, "sourceAccount cannot be null"); Operations = new List <Operation>(); }
/// <summary> /// Construct a new transaction builder. /// </summary> /// <param name="sourceAccount"> /// The source account for this transaction. This account is the account /// who will use a sequence number. When build() is called, the account object's sequence number will be incremented. /// </param> public Builder(ITransactionBuilderAccount sourceAccount) { _sourceAccount = sourceAccount ?? throw new ArgumentNullException(nameof(sourceAccount), "sourceAccount cannot be null"); _operations = new BlockingCollection <Operation>(); }
/// <summary> /// Construct a new transaction builder. /// </summary> /// <param name="sourceAccount"> /// The source account for this transaction. This account is the account /// who will use a sequence number. When Build() is called, the account object's sequence number /// will be incremented. /// </param> public Builder(ITransactionBuilderAccount sourceAccount) { SourceAccount = CheckNotNull(sourceAccount, "sourceAccount cannot be null"); Operations = new List<Operation>(); }