public LogTriggerConfig(SouceConfig sourceConfig, JobConfig jobConfig, Dictionary <string, object> functionParameter, LogConfig logConfig, bool enable)
 {
     this.SourceConfig      = sourceConfig;
     this.JobConfig         = jobConfig;
     this.FunctionParameter = functionParameter;
     this.LogConfig         = logConfig;
     this.Enable            = enable;
 }
 public override bool Equals(object obj)
 {
     //Check for null and compare run-time types.
     if ((obj == null) || !this.GetType().Equals(obj.GetType()))
     {
         return(false);
     }
     else
     {
         JobConfig p = (JobConfig)obj;
         return(MaxRetryTime == p.MaxRetryTime && TriggerInterval == p.TriggerInterval);
     }
 }
 public override bool Equals(object obj)
 {
     //Check for null and compare run-time types.
     if ((obj == null) || !this.GetType().Equals(obj.GetType()))
     {
         return(false);
     }
     else
     {
         LogTriggerConfig p = (LogTriggerConfig)obj;
         return(SourceConfig.Equals(p.SourceConfig) && JobConfig.Equals(p.JobConfig) &&
                (FunctionParameter.Count == p.FunctionParameter.Count && !FunctionParameter.Except(p.FunctionParameter).Any()) &&
                LogConfig.Equals(p.LogConfig) && Enable == p.Enable);
     }
 }
 public override int GetHashCode()
 {
     return(string.Format("{0}_{1}_{2}_{3}_{4}",
                          SourceConfig.GetHashCode(), JobConfig.GetHashCode(), FunctionParameter.GetHashCode(), LogConfig.GetHashCode(), Enable.GetHashCode()).GetHashCode());
 }