Esempio n. 1
0
 internal InMemoryMessageChannel GetChannel(ChannelIdentifier identifier)
 {
     if (!_channels.ContainsKey(identifier))
     {
         lock (_channelCreationLockObject)
         {
             if (!_channels.ContainsKey(identifier))
             {
                 _channels[identifier] = new InMemoryMessageChannel(identifier);
             }
         }
     }
     return(_channels[identifier]);
 }
Esempio n. 2
0
 public InMemoryMessageSource(InMemoryMessageChannel channel)
 {
     _channel = channel;
 }
Esempio n. 3
0
 public void Dispose()
 {
     _channel    = null;
     _isDisposed = true;
 }
Esempio n. 4
0
 public InMemoryMessageSender(InMemoryMessageChannel channel)
 {
     _channel = channel;
 }