diff --git a/Src/Support/Google.Apis/Services/BaseClientService.cs b/Src/Support/Google.Apis/Services/BaseClientService.cs index e7bc55a1727..5ac6c667146 100644 --- a/Src/Support/Google.Apis/Services/BaseClientService.cs +++ b/Src/Support/Google.Apis/Services/BaseClientService.cs @@ -187,7 +187,9 @@ protected BaseClientService(Initializer initializer) ApiKey = initializer.ApiKey; ApplicationName = initializer.ApplicationName; BaseUriOverride = initializer.BaseUri; +#pragma warning disable CS0618 // We still need to initialize the value on construction but the setter is rightly obsolete. UniverseDomain = initializer.UniverseDomain; +#pragma warning restore CS0618 // Type or member is obsolete HttpClientTimeout = initializer.HttpClientTimeout; ValidateParameters = initializer.ValidateParameters; if (ApplicationName == null) @@ -220,7 +222,14 @@ protected BaseClientService(Initializer initializer) /// is set, in which case will be used without further modification. /// /// - public string UniverseDomain { get; set; } + public string UniverseDomain + { + get; + [Obsolete( + "Using this setter never had any effect, the UniverseDomain value is used on Client construction only. " + + "Build a new Client specifying a new universe domain value instead.")] + set; + } /// /// The timeout to set on instances used by the service.