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

Commit d82bed1

Browse files
Update README.md
1 parent 7bee7a6 commit d82bed1

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,21 @@ An alternative approach to configure message routing information and event subsc
44

55
## Configuration
66

7-
Enable the `FileBasedRouting` feature in the endpoint configuration:
7+
Enable the file-based routing via routing configuration:
88

9-
endpointConfiguration.EnableFileBasedRouting();
9+
```
10+
var transport = endpointConfiguration.UseTransport<MsmqTransport>();
11+
var routing = transport.Routing();
12+
transport.Routing().UseFileBasedRouting();
13+
```
1014

1115
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).
1216

1317
It is possible to configure a different relative or absolute file path, e.g.:
1418

15-
endpointConfiguration.EnableFileBasedRouting(@"C:\routingFile.xml");
19+
```
20+
transport.Routing().UseFileBasedRouting(@"..\..\..\endpoints.xml");
21+
```
1622

1723
The routing file provides routing information like shown in the following example:
1824

0 commit comments

Comments
 (0)