public async Task Add(IFeedParticipant actor) { actor.Account = this; if (!feedParticipants.Contains(actor)) { feedParticipants.Add(actor); var interested = actor as IInterestedInMarketData; if (interested != null) { await interested.EnsureDataAvailable(ExtrapolatedServerTime).ConfigureAwait(false); } } }
public Task Add(IFeedParticipant actor) { actor.Account = this; if (!feedParticipants.Contains(actor)) { feedParticipants.Add(actor); //var interested = actor as IInterestedInMarketData; // OLD //if (interested != null) //{ // await interested.EnsureDataAvailable(ExtrapolatedServerTime).ConfigureAwait(false); //} } return(Task.CompletedTask); }