Skip to main content

EnvironmentResolver

  • Namespace: PPDS.Dataverse.Configuration
  • Assembly: PPDS.Dataverse
  • Kind: Class

Summary

Resolves named environments from DataverseOptions.

Members

Methods

GetDefaultEnvironment

DataverseEnvironmentOptions GetDefaultEnvironment(DataverseOptions options)

Gets the default environment from the configuration. Falls back to creating an environment from root-level Connections if no environments are defined.

  • Param options: The Dataverse options.

  • Returns: The default environment configuration.

GetEnvironment

DataverseEnvironmentOptions GetEnvironment(DataverseOptions options, string environmentName)

Gets a named environment from the configuration. Environment name matching is case-insensitive.

  • Param options: The Dataverse options.

  • Param environmentName: The environment name to retrieve.

  • Returns: The environment configuration.

GetEnvironmentNames

IEnumerable<string> GetEnvironmentNames(DataverseOptions options)

Gets all environment names.

HasEnvironment

bool HasEnvironment(DataverseOptions options, string environmentName)

Checks if a named environment exists in the configuration. Environment name matching is case-insensitive.