Class BehaviorResult
Namespace: Cephalon.Abstractions.Behaviors
Assembly: Cephalon.Abstractions.dll
Represents a legacy transport-neutral behavior outcome with an optional payload value.
public sealed class BehaviorResult<T> : Result<T>, IBehaviorResultType Parameters
Section titled “Type Parameters”T
The payload type carried by the result.
Inheritance
Section titled “Inheritance”object ← Result<T> ← BehaviorResult<T>
Implements
Section titled “Implements”Inherited Members
Section titled “Inherited Members”Result<T>.Status, Result<T>.Code, Result<T>.Message, Result<T>.IsSuccess, Result<T>.HasValue, Result<T>.Value, Result<T>.Fault, object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Remarks
Section titled “Remarks”Prefer
Operators
Section titled “Operators”implicit operator BehaviorResult<T>(T)
Section titled “ implicit operator BehaviorResult<T>(T)”Converts a raw payload value into a successful result.
public static implicit operator BehaviorResult<T>(T value)Parameters
Section titled “Parameters”value T
Returns
Section titled “Returns”implicit operator BehaviorResult<T>(BehaviorResultDescriptor)
Section titled “ implicit operator BehaviorResult<T>(BehaviorResultDescriptor)”Converts a no-payload descriptor into a typed behavior result.
public static implicit operator BehaviorResult<T>(BehaviorResultDescriptor descriptor)Parameters
Section titled “Parameters”descriptor BehaviorResultDescriptor