Inherits IDisposable.
Public Member Functions | |
bool | CancelTransaction (T request, bool shouldComplete=true) |
bool | CancelTransaction (Transaction< T > transaction, bool shouldComplete=true) |
void | CancelTransaction (Func< Transaction< T >, bool > where) |
Transaction< T > | GetTransaction (T message) |
Get the transaction corresponding to this message if there is one More... | |
Transaction< T > | CompleteTransaction (T response, IPEndPoint source, IPEndPoint receivedAt, bool success=true) |
void | AddTransaction (Transaction< T > transaction) |
Add a transaction for an outgoing Request. More... | |
void | Dispose () |
void | CancelAllTransactions () |
void NobleConnect.TransactionList< T >.AddTransaction | ( | Transaction< T > | transaction | ) |
Add a transaction for an outgoing Request.
Transactions are used to keep track of which Request and Respone belongs to. They also store the callback so we can pass the Response on to the application to do something useful with.
transaction |
void NobleConnect.TransactionList< T >.CancelAllTransactions | ( | ) |
void NobleConnect.TransactionList< T >.CancelTransaction | ( | Func< Transaction< T >, bool > | where | ) |
bool NobleConnect.TransactionList< T >.CancelTransaction | ( | T | request, |
bool | shouldComplete = true |
||
) |
bool NobleConnect.TransactionList< T >.CancelTransaction | ( | Transaction< T > | transaction, |
bool | shouldComplete = true |
||
) |
Transaction<T> NobleConnect.TransactionList< T >.CompleteTransaction | ( | T | response, |
IPEndPoint | source, | ||
IPEndPoint | receivedAt, | ||
bool | success = true |
||
) |
void NobleConnect.TransactionList< T >.Dispose | ( | ) |
Transaction<T> NobleConnect.TransactionList< T >.GetTransaction | ( | T | message | ) |
Get the transaction corresponding to this message if there is one
message |