Method BeginTransaction
BeginTransaction(BaseTransaction, List<string>)
Process a transaction.
Declaration
public static Deferred<TransactionResult> BeginTransaction(BaseTransaction transaction, List<string> costItemIds = null)
Parameters
Type | Name | Description |
---|---|---|
BaseTransaction | transaction | A BaseTransaction to process. |
List<string> | costItemIds | If this is a virtual transaction with item costs, this is the list of items to consume. If this argument is null or empty, the first inventory items that satisfy the cost will be consumed. |
Returns
Type | Description |
---|---|
Deferred<TransactionResult> | Returns a Deferred struct which can be used to track the state of the transaction. |