示例#1
0
文件: Bus.cs 项目: yonglehou/Symbiote
 public Bus(
     IChannelManager channels,
     IChannelIndex channelIndex,
     ISubscriptionManager subscriptions)
 {
     Channels      = channels;
     ChannelIndex  = channelIndex;
     Subscriptions = subscriptions;
 }
示例#2
0
 public ChannelManager( IChannelIndex channelIndex )
 {
     Index = channelIndex;
     Channels = new ConcurrentDictionary<string, IChannel>();
     ChannelFactories = new ConcurrentDictionary<Type, IChannelFactory>();
 }
示例#3
0
 public ChannelManager(IChannelIndex channelIndex)
 {
     Index            = channelIndex;
     Channels         = new ConcurrentDictionary <string, IChannel>();
     ChannelFactories = new ConcurrentDictionary <Type, IChannelFactory>();
 }