Skip to content

Commit 82b2714

Browse files
committed
Merge pull request #650 from rhencke/ssh
Silence a deprecation warning regarding SendingRequest2.
2 parents 241ce37 + 7ac3997 commit 82b2714

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/ServiceManagement/Sql/Commands.SqlDatabase/Services/Server/ServerDataService.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,12 @@ public abstract class ServerDataServiceContext : ServerContextInternal
4141
protected ServerDataServiceContext(Uri serviceUri)
4242
: base(serviceUri)
4343
{
44+
45+
#pragma warning disable 618
46+
// SendingRequest has been deprecated in favor of SendingRequest2, but SendingRequest2 does not
47+
// currently expose functionality we depend on, such as the ability to set UserAgent.
4448
this.SendingRequest += new EventHandler<SendingRequestEventArgs>(this.BeforeSendingRequest);
49+
#pragma warning restore 618
4550

4651
// Set the default timeout for the context.
4752
this.Timeout = DefaultDataServiceContextTimeoutInSeconds;

0 commit comments

Comments
 (0)