UpstreamTemplate Class
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.
Upstream template item settings. It defines the Upstream URL of the incoming requests. The template defines the pattern of the event, the hub or the category of the incoming request that matches current URL template.
public class UpstreamTemplate
type UpstreamTemplate = class
Public Class UpstreamTemplate
- Inheritance
-
UpstreamTemplate
Constructors
| Name | Description |
|---|---|
| UpstreamTemplate() |
Initializes a new instance of the UpstreamTemplate class. |
| UpstreamTemplate(String, String, String, String, UpstreamAuthSettings) |
Initializes a new instance of the UpstreamTemplate class. |
Properties
| Name | Description |
|---|---|
| Auth |
Gets or sets upstream auth settings. If not set, no auth is used for upstream messages. |
| CategoryPattern |
Gets or sets gets or sets the matching pattern for category names. If not set, it matches any category. There are 3 kind of patterns supported:
|
| EventPattern |
Gets or sets gets or sets the matching pattern for event names. If not set, it matches any event. There are 3 kind of patterns supported:
|
| HubPattern |
Gets or sets gets or sets the matching pattern for hub names. If not set, it matches any hub. There are 3 kind of patterns supported:
|
| UrlTemplate |
Gets or sets gets or sets the Upstream URL template. You can use 3
predefined parameters {hub}, {category} {event} inside the template, the
value of the Upstream URL is dynamically calculated when the client request
comes in.
For example, if the urlTemplate is |
Methods
| Name | Description |
|---|---|
| Validate() |
Validate the object. |