예제 #1
0
        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));
        }
예제 #2
0
        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);
        }
예제 #3
0
 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()
     });
 }
예제 #4
0
        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()
            });
        }
예제 #5
0
        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));
        }
예제 #6
0
 public StrategyStatusInfo(DateTime dateTime, StrategyStatusType type)
 {
     this.Type     = type;
     base.DateTime = dateTime;
 }
예제 #7
0
 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;
 }
예제 #8
0
 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));
 }
예제 #9
0
 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()
     };
 }
예제 #10
0
        internal StrategyStatusInfo method_37()
        {
            StrategyStatusType strategyStatusType_ = (this.Status == StrategyStatus.Running) ? StrategyStatusType.Started : StrategyStatusType.Stopped;

            return(this.method_38(strategyStatusType_));
        }
예제 #11
0
 public StrategyStatusInfo(DateTime dateTime, StrategyStatusType type) : base(dateTime)
 {
     Type = type;
 }
예제 #12
0
 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));
 }
예제 #13
0
 public StrategyStatusInfo(DateTime dateTime, StrategyStatusType type)
 {
     this.Type = type;
     base.DateTime = dateTime;
 }
예제 #14
0
 public StrategyStatusInfo(DateTime dateTime, StrategyStatusType type) : base(dateTime)
 {
     Type = type;
 }