Class EnvironmentsOptionsExtensions
Initialization option extensions related to environments.
Inherited Members
Namespace: Unity.Services.Core.Environments
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. |