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