Example #1
0
 public void SubscribeQuotes(IQuoteSink sink)
 {
     if (_sink != null)
         throw new InvalidOperationException("Already subscribed");
     if (sink == null)
         throw new ArgumentNullException("sink");
     _sink = sink;
     _sink.SubscribeMarket(_info.Uid);
 }
Example #2
0
 public void UnsubscribeQuotes()
 {
     if (_sink == null)
         throw new InvalidOperationException("Not subscribed");
     _sink.UnsubscribeMarket(_info.Uid);
     _sink = null;
 }