예제 #1
0
 public void setReceiver(ITypedReceiver receiver)
 {
     if (receiver != null)
     {
         Receiver = new RawReceiver(receiver);
         setReceiver(Receiver);
     }
     else
     {
         setReceiver(null);
     }
 }
예제 #2
0
 public TypedSubscriber(String channel, ITypedReceiver receiver)
     : base(channel)
 {
     Receiver = new RawReceiver(receiver);
     setReceiver(Receiver);
 }
예제 #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;
 }
예제 #4
0
 public TypedSubscriber(String channel, ITypedReceiver receiver)
     : base(channel)
 {
     Receiver = new RawReceiver(receiver);
     setReceiver(Receiver);
 }
예제 #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;
 }