ServiceHealthBehavior.HandleHealthRequest Method
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.
Returns the response message to a specified request.
public:
override void HandleHealthRequest(System::ServiceModel::ServiceHostBase ^ serviceHost, System::ServiceModel::Channels::Message ^ httpGetRequest, cli::array <System::String ^> ^ queries, [Runtime::InteropServices::Out] System::ServiceModel::Channels::Message ^ % replyMessage);
public override void HandleHealthRequest (System.ServiceModel.ServiceHostBase serviceHost, System.ServiceModel.Channels.Message httpGetRequest, string[] queries, out System.ServiceModel.Channels.Message replyMessage);
override this.HandleHealthRequest : System.ServiceModel.ServiceHostBase * System.ServiceModel.Channels.Message * string[] * Message -> unit
Public Overrides Sub HandleHealthRequest (serviceHost As ServiceHostBase, httpGetRequest As Message, queries As String(), ByRef replyMessage As Message)
Parameters
- serviceHost
- ServiceHostBase
An instance of the service host that contains the WCF service with the ServiceHealthBehavior enabled.
- httpGetRequest
- Message
The HTTP request made to the health endpoint.
- queries
- String[]
An array containing the field/value pairs of the query string.
- replyMessage
- Message
When the method returns, the response message of the health behavior. This message has a content type of text/html
or text/xml
, depending on whether the request was for XML or HTML.
Exceptions
Remarks
This method is invoked by the ServiceHealthBehaviorBase instance and is responsible for crafting the response message to the health endpoint.
Applies to
.NET
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示