Method Complete
Complete(TObject, bool, string)
Complete the operation and invoke events.
선언
public void Complete(TObject result, bool success, string errorMsg)
파라미터
타입 | 이름 | 설명 |
---|---|---|
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. |
참고
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.
선언
public void Complete(TObject result, bool success, string errorMsg, bool releaseDependenciesOnFailure)
파라미터
타입 | 이름 | 설명 |
---|---|---|
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. |
참고
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.
선언
public void Complete(TObject result, bool success, Exception exception, bool releaseDependenciesOnFailure = true)
파라미터
타입 | 이름 | 설명 |
---|---|---|
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. |
참고
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.