Class GovernanceOperationResult
Represents the outcome of an ASI Backbone operation.
public sealed class GovernanceOperationResult
- Inheritance
-
GovernanceOperationResult
- Inherited Members
Properties
Failed
Gets a value indicating whether the operation failed.
public bool Failed { get; }
Property Value
Messages
Gets the messages associated with the operation result.
public IReadOnlyList<string> Messages { get; }
Property Value
Succeeded
Gets a value indicating whether the operation succeeded.
public bool Succeeded { get; }
Property Value
Methods
Failure(IEnumerable<string>)
Creates a failed result with one or more messages.
public static GovernanceOperationResult Failure(IEnumerable<string> messages)
Parameters
messagesIEnumerable<string>The messages associated with the failed result.
Returns
- GovernanceOperationResult
A failed operation result.
Failure(string)
Creates a failed result with one message.
public static GovernanceOperationResult Failure(string message)
Parameters
messagestringThe message associated with the failed result.
Returns
- GovernanceOperationResult
A failed operation result.
Success()
Creates a successful result with no messages.
public static GovernanceOperationResult Success()
Returns
- GovernanceOperationResult
A successful operation result.
Success(IEnumerable<string>)
Creates a successful result with one or more messages.
public static GovernanceOperationResult Success(IEnumerable<string> messages)
Parameters
messagesIEnumerable<string>The messages associated with the successful result.
Returns
- GovernanceOperationResult
A successful operation result.
Success(string)
Creates a successful result with one message.
public static GovernanceOperationResult Success(string message)
Parameters
messagestringThe message associated with the successful result.
Returns
- GovernanceOperationResult
A successful operation result.