Skip to main content

NetworkTransportResult

A class in Alta.NetworkTransport.Runtime, Alta.NetworkingTransport.

Simple success or error result returned by transport calls such as ProcessIncoming and Terminate.

Constructors​

MemberWhat it is
NetworkTransportResult()Creates a NetworkTransportResult with default values.

Properties​

MemberWhat it is
string Error { get; private set; }The error message; null on success.
bool IsSuccess { get; private set; }True when the call worked.
static NetworkTransportResult NoResources { get; }Shared failed result with the message "No resources".
static NetworkTransportResult Success { get; }Shared successful result, returned by most transport calls.

Methods​

MemberWhat it is
static NetworkTransportResult FromError(string error)Makes a failed result with the given message.