12345678910111213141516171819202122232425262728293031 |
- using System;
- namespace Unity.Services.Core.Environments
- {
-
-
-
- public static class EnvironmentsOptionsExtensions
- {
- internal const string EnvironmentNameKey = "com.unity.services.core.environment-name";
-
-
-
-
-
-
-
-
-
-
- public static InitializationOptions SetEnvironmentName(this InitializationOptions self, string environmentName)
- {
- if (string.IsNullOrEmpty(environmentName))
- throw new ArgumentException("Environment name cannot be null or empty.", nameof(environmentName));
- self.SetOption(EnvironmentNameKey, environmentName);
- return self;
- }
- }
- }
|