Example: lr.end_transaction

The following example marks the end of a transaction, and assigns it the appropriate status.

public int login(string username, string password)

{

//emulate failed login

return lr.FAIL;

}

int status = login("username","password");

 

if (status == lr.FAIL) {

lr.end_transaction("Transaction",lr.FAIL);

}

else

lr.end_transaction("Transaction",lr.PASS);

 

return 0;

}