protected BaseChannel(string name, string[] productIds, bool processOutOfOrder) { this.Name = name; this.observableManager = new ObservableManager <T>(); this.ProductIds = productIds; this.lastSequence = 0; this.processOutOfOrder = processOutOfOrder; }
public GdaxFeedApi(ClientWebSocket client, IGdaxFeedApiLogger logger) { this.logger = logger ?? new NullLogger(); this.client = client; this.SubscriptionManager = new SubscriptionManager(this); this.observableManager = new ObservableManager <JObject>(); this.requests = new BlockingCollection <ApiFeedRequest>(); this.responses = new BlockingCollection <ApiFeedResponse>(); }