Method Complete
Complete(TObject, bool, string)
Complete the operation and invoke events.
Declaration
public void Complete(TObject result, bool success, string errorMsg)
Parameters
Type | Name | Description |
---|---|---|
TObject | result | The result object for the operation. |
bool | success | True if successful or if the operation failed silently. |
string | errorMsg | The error message if the operation has failed. |
Remarks
An operation is considered to have failed silently if success is true and if errorMsg isn't null or empty. The exception handler will be called in cases of silent failures. Any failed operations will call Release on any dependencies that succeeded.
Complete(TObject, bool, string, bool)
Complete the operation and invoke events.
Declaration
public void Complete(TObject result, bool success, string errorMsg, bool releaseDependenciesOnFailure)
Parameters
Type | Name | Description |
---|---|---|
TObject | result | The result object for the operation. |
bool | success | True if successful or if the operation failed silently. |
string | errorMsg | The error message if the operation has failed. |
bool | releaseDependenciesOnFailure | When true, failed operations will release any dependencies that succeeded. |
Remarks
An operation is considered to have failed silently if success is true and if errorMsg isn't null or empty. The exception handler will be called in cases of silent failures.
Complete(TObject, bool, Exception, bool)
Complete the operation and invoke events.
Declaration
public void Complete(TObject result, bool success, Exception exception, bool releaseDependenciesOnFailure = true)
Parameters
Type | Name | Description |
---|---|---|
TObject | result | The result object for the operation. |
bool | success | True if successful or if the operation failed silently. |
Exception | exception | The exception if the operation has failed. |
bool | releaseDependenciesOnFailure | When true, failed operations will release any dependencies that succeeded. |
Remarks
An operation is considered to have failed silently if success is true and if exception isn't null. The exception handler will be called in cases of silent failures.