Κοινή χρήση μέσω


RequestMetadata Constructors

Definition

Overloads

RequestMetadata()

Initializes a new instance of the RequestMetadata class.

RequestMetadata(String, String, String)

Initializes a new instance of the RequestMetadata class.

RequestMetadata()

Source:
RequestMetadata.cs

Initializes a new instance of the RequestMetadata class.

public:
 RequestMetadata();
public RequestMetadata ();
Public Sub New ()

Remarks

This constructor initializes MethodType to GET, and all other properties to "unknown".

Applies to

RequestMetadata(String, String, String)

Source:
RequestMetadata.cs

Initializes a new instance of the RequestMetadata class.

public RequestMetadata (string methodType, string requestRoute, string requestName = "unknown");
new Microsoft.Extensions.Http.Diagnostics.RequestMetadata : string * string * string -> Microsoft.Extensions.Http.Diagnostics.RequestMetadata
Public Sub New (methodType As String, requestRoute As String, Optional requestName As String = "unknown")

Parameters

methodType
String

HTTP method type of the request.

requestRoute
String

Route of the request.

requestName
String

Name of the request.

Exceptions

Any argument is null.

Remarks

The DependencyName property is initialized to "unknown".

Applies to