Table of Contents

Class BackboneResult

Namespace
AsiBackbone.Core.Results
Assembly
AsiBackbone.Core.dll

Represents the outcome of an ASI Backbone operation.

public sealed class BackboneResult
Inheritance
BackboneResult
Inherited Members

Properties

Failed

Gets a value indicating whether the operation failed.

public bool Failed { get; }

Property Value

bool

Messages

Gets the messages associated with the operation result.

public IReadOnlyList<string> Messages { get; }

Property Value

IReadOnlyList<string>

Succeeded

Gets a value indicating whether the operation succeeded.

public bool Succeeded { get; }

Property Value

bool

Methods

Failure(IEnumerable<string>)

Creates a failed result with one or more messages.

public static BackboneResult Failure(IEnumerable<string> messages)

Parameters

messages IEnumerable<string>

The messages associated with the failed result.

Returns

BackboneResult

A failed operation result.

Failure(string)

Creates a failed result with one message.

public static BackboneResult Failure(string message)

Parameters

message string

The message associated with the failed result.

Returns

BackboneResult

A failed operation result.

Success()

Creates a successful result with no messages.

public static BackboneResult Success()

Returns

BackboneResult

A successful operation result.

Success(IEnumerable<string>)

Creates a successful result with one or more messages.

public static BackboneResult Success(IEnumerable<string> messages)

Parameters

messages IEnumerable<string>

The messages associated with the successful result.

Returns

BackboneResult

A successful operation result.

Success(string)

Creates a successful result with one message.

public static BackboneResult Success(string message)

Parameters

message string

The message associated with the successful result.

Returns

BackboneResult

A successful operation result.