HybridConnectionListener.AcceptHandler Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Allows installing a custom handler which can inspect request headers, control response headers, decide whether to accept or reject a web-socket upgrade request, and control the status code/description if rejecting. The AcceptHandler should return true to accept a client request or false to reject.
public Func<Microsoft.Azure.Relay.RelayedHttpListenerContext,System.Threading.Tasks.Task<bool>> AcceptHandler { get; set; }
member this.AcceptHandler : Func<Microsoft.Azure.Relay.RelayedHttpListenerContext, System.Threading.Tasks.Task<bool>> with get, set
Public Property AcceptHandler As Func(Of RelayedHttpListenerContext, Task(Of Boolean))
Property Value
Applies to
Совместная работа с нами на GitHub
Источник этого содержимого можно найти на GitHub, где также можно создавать и просматривать проблемы и запросы на вытягивание. Дополнительные сведения см. в нашем руководстве для участников.
Azure SDK for .NET