private void method_39(StrategyStatusType strategyStatusType_0) { Group group = this.method_41("SolutionStatus", strategyStatusType_0); StrategyStatusInfo obj = this.method_38(strategyStatusType_0); this.framework.eventServer_0.OnLog(new GroupEvent(obj, group)); }
private Group method_41(string string_0, StrategyStatusType strategyStatusType_0) { Group group = this.method_46(string_0); if (group == null) { group = new Group(string_0); if (this.framework.Mode == FrameworkMode.Realtime) { group.DateTime = DateTime.Now; } else if (strategyStatusType_0 == StrategyStatusType.Stopped) { group.DateTime = this.framework.Clock.DateTime; } this.framework.groupManager_0.Add(group); } else { if (this.framework.Mode == FrameworkMode.Realtime) { group.DateTime = DateTime.Now; } else if (strategyStatusType_0 == StrategyStatusType.Stopped) { group.DateTime = this.framework.Clock.DateTime; } this.framework.eventServer_0.OnLog(group); } return(group); }
private StrategyStatusInfo method_38(StrategyStatusType strategyStatusType_0) { return(new StrategyStatusInfo(this.method_41("SolutionStatus", strategyStatusType_0).dateTime, strategyStatusType_0) { Solution = ((this.strategy__0.Name == null) ? "Solution" : this.strategy__0.Name), Mode = this.Mode.ToString() }); }
public override object Read(BinaryReader reader) { reader.ReadByte(); DateTime dateTime = new DateTime(reader.ReadInt64()); StrategyStatusType type = (StrategyStatusType)reader.ReadByte(); return(new StrategyStatusInfo(dateTime, type) { Solution = reader.ReadString(), Mode = reader.ReadString() }); }
private void SetStatusType(StrategyStatusType type) { var group = FindOrCreateGroup("SolutionStatus"); var info = new StrategyStatusInfo(this.framework.Clock.DateTime, type) { Solution = Strategy.Name ?? "Solution", Mode = Mode.ToString(), DateTime = DateTime.Now }; this.framework.EventServer.OnLog(new GroupEvent(info, group)); }
public StrategyStatusInfo(DateTime dateTime, StrategyStatusType type) { this.Type = type; base.DateTime = dateTime; }
private Group method_41(string string_0, StrategyStatusType strategyStatusType_0) { Group group = this.method_46(string_0); if (group == null) { group = new Group(string_0); if (this.framework.Mode == FrameworkMode.Realtime) { group.DateTime = DateTime.Now; } else if (strategyStatusType_0 == StrategyStatusType.Stopped) { group.DateTime = this.framework.Clock.DateTime; } this.framework.groupManager_0.Add(group); } else { if (this.framework.Mode == FrameworkMode.Realtime) { group.DateTime = DateTime.Now; } else if (strategyStatusType_0 == StrategyStatusType.Stopped) { group.DateTime = this.framework.Clock.DateTime; } this.framework.eventServer_0.OnLog(group); } return group; }
private StrategyStatusInfo method_38(StrategyStatusType strategyStatusType_0) { return new StrategyStatusInfo(this.method_41("SolutionStatus", strategyStatusType_0).dateTime, strategyStatusType_0) { Solution = ((this.strategy__0.Name == null) ? "Solution" : this.strategy__0.Name), Mode = this.Mode.ToString() }; }
internal StrategyStatusInfo method_37() { StrategyStatusType strategyStatusType_ = (this.Status == StrategyStatus.Running) ? StrategyStatusType.Started : StrategyStatusType.Stopped; return(this.method_38(strategyStatusType_)); }
public StrategyStatusInfo(DateTime dateTime, StrategyStatusType type) : base(dateTime) { Type = type; }