diff --git a/src/ServiceManagement/Sql/Commands.SqlDatabase/Services/Server/ServerDataService.cs b/src/ServiceManagement/Sql/Commands.SqlDatabase/Services/Server/ServerDataService.cs index c0bd5545d1c9..f8e48688085f 100644 --- a/src/ServiceManagement/Sql/Commands.SqlDatabase/Services/Server/ServerDataService.cs +++ b/src/ServiceManagement/Sql/Commands.SqlDatabase/Services/Server/ServerDataService.cs @@ -41,7 +41,12 @@ public abstract class ServerDataServiceContext : ServerContextInternal protected ServerDataServiceContext(Uri serviceUri) : base(serviceUri) { + +#pragma warning disable 618 + // SendingRequest has been deprecated in favor of SendingRequest2, but SendingRequest2 does not + // currently expose functionality we depend on, such as the ability to set UserAgent. this.SendingRequest += new EventHandler(this.BeforeSendingRequest); +#pragma warning restore 618 // Set the default timeout for the context. this.Timeout = DefaultDataServiceContextTimeoutInSeconds;