예제 #1
0
 /// <summary>
 /// Gets the bus instance by name.
 /// </summary>
 /// <param name="name"></param>
 /// <returns></returns>
 public IBusControl CreateBus(string name)
 {
     return(definitions.GetDefinitions().Where(i => i.BusName == name).Select(i => i.Factory(b => Configure(name, b))).FirstOrDefault());
 }
 public IEnumerable <string> GetBusNames()
 {
     return(definitions.GetDefinitions().Select(i => i.BusName));
 }