Skip to main content

EnvironmentResolutionService

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

Summary

Service for resolving environments using a multi-layer strategy.

Members

Constructors

EnvironmentResolutionService(AuthProfile profile, Action<DeviceCodeInfo> deviceCodeCallback, ISecureCredentialStore credentialStore)

EnvironmentResolutionService(AuthProfile profile, Action<DeviceCodeInfo> deviceCodeCallback, ISecureCredentialStore credentialStore)

Creates a new environment resolution service.

  • Param profile: The auth profile to use for resolution.

  • Param deviceCodeCallback: Optional callback for device code display.

  • Param credentialStore: Optional secure credential store for looking up secrets.

Methods

Dispose

void Dispose()

(inherited from System.IDisposable.Dispose)

ResolveAsync

Task<EnvironmentResolutionResult> ResolveAsync(string identifier, CancellationToken cancellationToken)

Resolves an environment by identifier using the multi-layer strategy.

  • Param identifier: The environment identifier (URL, name, ID, etc.).

  • Param cancellationToken: Cancellation token.

  • Returns: A result containing the resolved environment info on success, or an error message on failure.