Class EnvironmentsOptionsExtensions
Initialization option extensions related to environments.
Inherited Members
Namespace: Unity.Services.Core.Environments
Assembly: Unity.Services.Core.Environments.dll
Syntax
public static class EnvironmentsOptionsExtensions
Methods
SetEnvironmentName(InitializationOptions, string)
An extension to set the environment to use.
Declaration
public static InitializationOptions SetEnvironmentName(this InitializationOptions self, string environmentName)
Parameters
Type | Name | Description |
---|---|---|
InitializationOptions | self | The InitializationOptions object to modify |
string | environmentName | The name of the environment to use |
Returns
Type | Description |
---|---|
InitializationOptions | Return |
Exceptions
Type | Condition |
---|---|
ArgumentException | Throws a ArgumentException if environmentName is null or empty. |