Skip to content
This repository was archived by the owner on Sep 2, 2021. It is now read-only.

Commit 1ea6874

Browse files
authored
add Uri based routing config API to docs
1 parent 9fb99ec commit 1ea6874

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,17 @@ transport.Routing().UseFileBasedRouting();
1414

1515
This will configure the endpoint to look for a `endpoints.xml` file in the endpoints [base directory](https://msdn.microsoft.com/en-us/library/system.appdomain.basedirectory(v=vs.110).aspx).
1616

17-
It is possible to configure a different relative or absolute file path, e.g.:
17+
The routing file path can be configured using relative or absolute paths, e.g.:
1818

1919
```
2020
transport.Routing().UseFileBasedRouting(@"..\..\..\endpoints.xml");
2121
```
22+
23+
It is also possible to provide an `Uri` to the routing file:
24+
25+
```
26+
transport.Routing().UseFileBasedRouting(new Uri("https://your-server.com/endpoints.xml"));
27+
```
2228

2329
The routing file provides routing information like shown in the following example:
2430

0 commit comments

Comments
 (0)