public StrategyLog(StrategyLogManager manager, StrategyLogList list, string name) { this.manager = manager; this.List = list; this.Name = name; this.items = new SortedList <DateTime, object>(); }
public StrategyLog(StrategyLogManager manager, StrategyLogList list, string name) { this.manager = manager; this.List = list; this.Name = name; this.items = new SortedList<DateTime, object>(); }
internal void OnLogAdded(StrategyLogList list, StrategyLog log) { if (this.LogAdded == null) { return; } this.LogAdded((object)list, new StrategyLogEventArgs(log)); }
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; } }
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); } }
internal void OnLogAdded(StrategyLogList list, StrategyLog log) { if (this.LogAdded == null) return; this.LogAdded((object)list, new StrategyLogEventArgs(log)); }