/// <summary>
 /// Loads the configurations to apply consumers to the endpoint.
 /// </summary>
 /// <param name="busName"></param>
 /// <param name="endpointName"></param>
 /// <returns></returns>
 public IEnumerable <IReceiveEndpointConfiguration> GetConfiguration(string busName, string endpointName)
 {
     return(definitions.GetDefinitions().Where(i => i.BusName == busName && i.EndpointName == endpointName).Select(i => cache.GetOrAdd(i, _ => new ConsumerDefinitionReceiveEndpointConfiguration(_, scopeProvider))));
 }
コード例 #2
0
 /// <summary>
 /// Gets the known bus names.
 /// </summary>
 /// <returns></returns>
 public IEnumerable <string> GetBusNames()
 {
     return(definitions.GetDefinitions().Select(i => i.BusName));
 }