NServiceBus.AcceptanceTesting.Support.ScenarioRunner.CreateRoutingTable C# (CSharp) Method

CreateRoutingTable() static private method

static private CreateRoutingTable ( IEnumerable behaviorDescriptors ) : string>.IDictionary
behaviorDescriptors IEnumerable
return string>.IDictionary
        static IDictionary<Type, string> CreateRoutingTable(IEnumerable<EndpointBehavior> behaviorDescriptors)
        {
            var routingTable = new Dictionary<Type, string>();

            foreach (var behaviorDescriptor in behaviorDescriptors)
            {
                routingTable[behaviorDescriptor.EndpointBuilderType] = GetEndpointNameForRun(behaviorDescriptor);
            }

            return routingTable;
        }