public override IEnumerable <StateVariable> GetState() { return(new[] { new StateVariable { Name = nameof(OutputPath), Value = OutputPath, Type = StateVariable.StateType.Output }, new StateVariable { Name = nameof(Overwrite), Value = Overwrite.ToString(), Type = StateVariable.StateType.Input }, new StateVariable { Name = nameof(AppendTop), Value = AppendTop.ToString(), Type = StateVariable.StateType.Input }, new StateVariable { Name = nameof(AppendBottom), Value = AppendBottom.ToString(), Type = StateVariable.StateType.Input }, new StateVariable { Name = nameof(FileContents), Value = FileContents, Type = StateVariable.StateType.InputOutput }, new StateVariable { Name = nameof(FileContentsAsBase64), Value = FileContentsAsBase64.ToString(), Type = StateVariable.StateType.InputOutput }, new StateVariable { Name = nameof(Username), Value = Username, Type = StateVariable.StateType.Input }, new StateVariable { Name = nameof(PrivateKeyFile), Value = PrivateKeyFile, Type = StateVariable.StateType.Input }, new StateVariable { Name = nameof(Result), Value = Result, Type = StateVariable.StateType.Output } }); }
public override int GetHashCode() { unchecked { var hashCode = base.GetHashCode(); hashCode = (hashCode * 397) ^ Append.GetHashCode(); hashCode = (hashCode * 397) ^ (FileContents != null ? FileContents.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (OutputPath != null ? OutputPath.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Overwrite.GetHashCode(); hashCode = (hashCode * 397) ^ AppendTop.GetHashCode(); hashCode = (hashCode * 397) ^ AppendBottom.GetHashCode(); return(hashCode); } }