Skip to main content

EnvironmentResolutionResult

  • Namespace: PPDS.Auth.Discovery
  • Assembly: PPDS.Auth
  • Kind: Class

Summary​

Result of an environment resolution attempt.

Members​

Methods​

Failed​

EnvironmentResolutionResult Failed(string errorMessage, string errorCode)

Creates a failed result.

Succeeded​

EnvironmentResolutionResult Succeeded(EnvironmentInfo environment, ResolutionMethod method)

Creates a successful result.

Properties​

Environment​

EnvironmentInfo Environment { get; set; }

Gets the resolved environment info (null if failed).

ErrorCode​

string ErrorCode { get; set; }

Gets the structured error code carried from the underlying failure (null if successful or unknown). Values come from PPDS.Auth.AuthErrorCodes.

ErrorMessage​

string ErrorMessage { get; set; }

Gets the error message (null if successful).

Method​

ResolutionMethod Method { get; set; }

Gets the method used to resolve the environment.

Success​

bool Success { get; set; }

Gets whether the resolution was successful.