Exemplo n.º 1
0
 public void setReceiver(ITypedReceiver receiver)
 {
     if (receiver != null)
     {
         Receiver = new RawReceiver(receiver);
         setReceiver(Receiver);
     }
     else
     {
         setReceiver(null);
     }
 }
Exemplo n.º 2
0
 public TypedSubscriber(String channel, ITypedReceiver receiver)
     : base(channel)
 {
     Receiver = new RawReceiver(receiver);
     setReceiver(Receiver);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Constructs a new publisher for the given channel name.
 /// </summary>
 /// <param name="channel">name of the channel</param>
 public RawReceiver(ITypedReceiver rcv)
 {
     types         = new Dictionary <string, Type>();
     TypedReceiver = rcv;
 }
Exemplo n.º 4
0
 public TypedSubscriber(String channel, ITypedReceiver receiver)
     : base(channel)
 {
     Receiver = new RawReceiver(receiver);
     setReceiver(Receiver);
 }
Exemplo n.º 5
0
 /// <summary>
 /// Constructs a new publisher for the given channel name.
 /// </summary>
 /// <param name="channel">name of the channel</param>
 public RawReceiver(ITypedReceiver rcv)
 {
     types = new Dictionary<string, Type>();
     TypedReceiver = rcv;
 }