public override int GetHashCode() { unchecked { var hashCode = base.GetHashCode(); hashCode = (hashCode * 397) ^ (int)SuspendOption; hashCode = (hashCode * 397) ^ (PersistValue != null ? PersistValue.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (AllowManualResumption != null ? AllowManualResumption.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (EncryptData != null ? EncryptData.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Response != null ? Response.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (SaveDataFunc != null ? SaveDataFunc.GetHashCode() : 0); return(hashCode); } }
public override IEnumerable <StateVariable> GetState() { return(new[] { new StateVariable { Name = nameof(SuspendOption), Value = SuspendOption.ToString(), Type = StateVariable.StateType.Input, }, new StateVariable { Name = nameof(PersistValue), Value = PersistValue, Type = StateVariable.StateType.Input, }, new StateVariable { Name = nameof(AllowManualResumption), Value = AllowManualResumption.ToString(), Type = StateVariable.StateType.Input, }, new StateVariable { Name = nameof(EncryptData), Value = EncryptData.ToString(), Type = StateVariable.StateType.Input, }, new StateVariable { Name = nameof(Response), Value = Response, Type = StateVariable.StateType.Output }, new StateVariable { Name = nameof(Result), Value = Result, Type = StateVariable.StateType.Output }, }); }