Beispiel #1
0
		private void QuoteService_onReset(object sender, QuoteResetEvent e) {
			string sDataSource = e.DataSource;
			lock (__cStorages) {
				foreach (SeriesStorage cStorage in __cStorages.Values) {
					cStorage.Reset(sDataSource);
				}
			}
		}
		/// <summary>
		///   發送清盤重置的通知
		/// </summary>
		/// <param name="e">QuoteResetEvent類別</param>
		protected void OnReset(QuoteResetEvent e) {
			if (onReset != null) {
				Task.Factory.StartNew(() => {
					onReset(this, e);
				});
			}
		}