At the moment an operation has fields to track its state (wether its aborted, the intent that was used to start the operation, etc).
Ideally state should be decoupled so operations become lightweight execution containers (a bit like Runnable) where state can be tracked with an OperationContext.
Another benefit of doing this is for testing, you can provide an Operation with a mock context.
At the moment an operation has fields to track its state (wether its aborted, the intent that was used to start the operation, etc).
Ideally state should be decoupled so operations become lightweight execution containers (a bit like Runnable) where state can be tracked with an OperationContext.
Another benefit of doing this is for testing, you can provide an Operation with a mock context.