Esempio n. 1
0
 public StrategyLog(StrategyLogManager manager, StrategyLogList list, string name)
 {
     this.manager = manager;
     this.List    = list;
     this.Name    = name;
     this.items   = new SortedList <DateTime, object>();
 }
Esempio n. 2
0
 public StrategyLog(StrategyLogManager manager, StrategyLogList list, string name)
 {
   this.manager = manager;
   this.List = list;
   this.Name = name;
   this.items = new SortedList<DateTime, object>();
 }
Esempio n. 3
0
 internal void OnLogAdded(StrategyLogList list, StrategyLog log)
 {
     if (this.LogAdded == null)
     {
         return;
     }
     this.LogAdded((object)list, new StrategyLogEventArgs(log));
 }
Esempio n. 4
0
		public IStrategyLogList GetLogList(string strategyName, string symbol)
		{
			lock (this.syncRoot)
			{
				SortedList<string, StrategyLogList> local_0;
				if (!this.table.TryGetValue(strategyName, out local_0))
				{
					local_0 = new SortedList<string, StrategyLogList>();
					this.table.Add(strategyName, local_0);
				}
				StrategyLogList local_1;
				if (!local_0.TryGetValue(symbol, out local_1))
				{
					local_1 = new StrategyLogList(this, strategyName, symbol);
					local_0.Add(symbol, local_1);
					this.array.Add(local_1);
				}
				return (IStrategyLogList)local_1;
			}
		}
Esempio n. 5
0
 public IStrategyLogList GetLogList(string strategyName, string symbol)
 {
     lock (this.syncRoot)
     {
         SortedList <string, StrategyLogList> local_0;
         if (!this.table.TryGetValue(strategyName, out local_0))
         {
             local_0 = new SortedList <string, StrategyLogList>();
             this.table.Add(strategyName, local_0);
         }
         StrategyLogList local_1;
         if (!local_0.TryGetValue(symbol, out local_1))
         {
             local_1 = new StrategyLogList(this, strategyName, symbol);
             local_0.Add(symbol, local_1);
             this.array.Add(local_1);
         }
         return((IStrategyLogList)local_1);
     }
 }
Esempio n. 6
0
		internal void OnLogAdded(StrategyLogList list, StrategyLog log)
		{
			if (this.LogAdded == null)
				return;
			this.LogAdded((object)list, new StrategyLogEventArgs(log));
		}