コード例 #1
0
ファイル: CustomEvents.cs プロジェクト: kenaschmidt/Finance
 public LiveQuoteEventArgs(Security security, LiveQuoteType quoteType, DateTime quoteTime, decimal quotePrice, long quoteVolume)
 {
     this.security = security ?? throw new ArgumentNullException(nameof(security));
     QuoteType     = quoteType;
     QuoteTime     = quoteTime;
     QuotePrice    = quotePrice;
     QuoteVolume   = quoteVolume;
 }
コード例 #2
0
 protected void OnLiveQuoteReceived(Security security, LiveQuoteType quoteType, DateTime quoteTime, decimal quotePrice, long quoteVolume)
 {
     LiveQuoteReceived?.Invoke(this, new LiveQuoteEventArgs(
                                   security, quoteType, quoteTime, quotePrice, quoteVolume));
 }