WorkspaceResult T
NexusLabs.Needlr.AgentFramework¶
NexusLabs.Needlr.AgentFramework.Workspace¶
WorkspaceResult<T> Class¶
Result of a workspace operation — either a success value of type T or a failure carrying an System.Exception.
Type parameters¶
T
The operation-specific success data type.
Inheritance System.Object 🡒 WorkspaceResult\<T>
Properties¶
WorkspaceResult<T>.Exception Property¶
The exception that caused the failure. Only meaningful when Success is false.
Property Value¶
WorkspaceResult<T>.Success Property¶
Whether the operation succeeded.
Property Value¶
WorkspaceResult<T>.Value Property¶
The success value. Only meaningful when Success is true.
Property Value¶
Methods¶
WorkspaceResult<T>.Fail(Exception) Method¶
Creates a failure result carrying exception.
public static NexusLabs.Needlr.AgentFramework.Workspace.WorkspaceResult<T> Fail(System.Exception exception);
Parameters¶
exception System.Exception
Returns¶
NexusLabs.Needlr.AgentFramework.Workspace.WorkspaceResult<T>
WorkspaceResult<T>.Ok(T) Method¶
Creates a success result carrying value.
Parameters¶
value T
Returns¶
NexusLabs.Needlr.AgentFramework.Workspace.WorkspaceResult<T>