示例#1
0
 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);
         }
     }
 }
示例#2
0
 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);
 }