예제 #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);
 }
예제 #2
0
 public void UnsubscribeQuotes()
 {
     if (_sink == null)
         throw new InvalidOperationException("Not subscribed");
     _sink.UnsubscribeMarket(_info.Uid);
     _sink = null;
 }