Esempio n. 1
0
        void FileBasedRouting(EndpointConfiguration endpointConfiguration)
        {
            #region Routing-FileBased-Config

            RoutingSettings routingSettings = endpointConfiguration.Routing();
            routingSettings.UnicastRoutingTable.RouteToEndpoint(typeof(AcceptOrder), "Sales");
            routingSettings.UnicastRoutingTable.RouteToEndpoint(typeof(SendOrder), "Shipping");
            routingSettings.UseFileBasedEndpointInstanceMapping(@"C:\Routes.xml");

            #endregion
        }