Esempio n. 1
0
 /// <summary>
 ///     Determines whether [is message originator].
 /// </summary>
 /// <returns></returns>
 public bool IsMessageOriginator( )
 {
     return
         (MachineName.Equals(Identity.MachineName, StringComparison.InvariantCultureIgnoreCase) &&
          ProcessId.Equals(Identity.ProcessId) &&
          AppDomainId.Equals(Identity.AppDomainId));
 }
Esempio n. 2
0
        /// <summary>
        /// Returns true if ProcessStatusChangedParameters instances are equal
        /// </summary>
        /// <param name="other">Instance of ProcessStatusChangedParameters to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ProcessStatusChangedParameters other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     ProcessId == other.ProcessId ||
                     ProcessId != null &&
                     ProcessId.Equals(other.ProcessId)
                     ) &&
                 (
                     SchemeCode == other.SchemeCode ||
                     SchemeCode != null &&
                     SchemeCode.Equals(other.SchemeCode)
                 ) &&
                 (
                     ProcessInstance == other.ProcessInstance ||
                     ProcessInstance != null &&
                     ProcessInstance.Equals(other.ProcessInstance)
                 ));
        }
Esempio n. 3
0
        /// <summary>
        /// Returns true if HistoryItem instances are equal
        /// </summary>
        /// <param name="other">Instance of HistoryItem to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(HistoryItem other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Id == other.Id ||
                     Id != null &&
                     Id.Equals(other.Id)
                     ) &&
                 (
                     ProcessId == other.ProcessId ||
                     ProcessId != null &&
                     ProcessId.Equals(other.ProcessId)
                 ) &&
                 (
                     IdentityId == other.IdentityId ||
                     IdentityId != null &&
                     IdentityId.Equals(other.IdentityId)
                 ) &&
                 (
                     AllowedToEmployeeNames == other.AllowedToEmployeeNames ||
                     AllowedToEmployeeNames != null &&
                     AllowedToEmployeeNames.Equals(other.AllowedToEmployeeNames)
                 ) &&
                 (
                     TransitionTime == other.TransitionTime ||
                     TransitionTime != null &&
                     TransitionTime.Equals(other.TransitionTime)
                 ) &&
                 (
                     Order == other.Order ||
                     Order != null &&
                     Order.Equals(other.Order)
                 ) &&
                 (
                     InitialState == other.InitialState ||
                     InitialState != null &&
                     InitialState.Equals(other.InitialState)
                 ) &&
                 (
                     DestinationState == other.DestinationState ||
                     DestinationState != null &&
                     DestinationState.Equals(other.DestinationState)
                 ) &&
                 (
                     Command == other.Command ||
                     Command != null &&
                     Command.Equals(other.Command)
                 ));
        }
Esempio n. 4
0
        /// <summary>
        /// Returns true if Transition instances are equal
        /// </summary>
        /// <param name="other">Instance of Transition to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(Transition other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     ProcessId == other.ProcessId ||
                     ProcessId != null &&
                     ProcessId.Equals(other.ProcessId)
                     ) &&
                 (
                     ActorIdentityId == other.ActorIdentityId ||
                     ActorIdentityId != null &&
                     ActorIdentityId.Equals(other.ActorIdentityId)
                 ) &&
                 (
                     ExecutorIdentityId == other.ExecutorIdentityId ||
                     ExecutorIdentityId != null &&
                     ExecutorIdentityId.Equals(other.ExecutorIdentityId)
                 ) &&
                 (
                     FromActivityName == other.FromActivityName ||
                     FromActivityName != null &&
                     FromActivityName.Equals(other.FromActivityName)
                 ) &&
                 (
                     FromStateName == other.FromStateName ||
                     FromStateName != null &&
                     FromStateName.Equals(other.FromStateName)
                 ) &&
                 (
                     IsFinalised == other.IsFinalised ||
                     IsFinalised != null &&
                     IsFinalised.Equals(other.IsFinalised)
                 ) &&
                 (
                     ToActivityName == other.ToActivityName ||
                     ToActivityName != null &&
                     ToActivityName.Equals(other.ToActivityName)
                 ) &&
                 (
                     ToStateName == other.ToStateName ||
                     ToStateName != null &&
                     ToStateName.Equals(other.ToStateName)
                 ) &&
                 (
                     TransitionClassifier == other.TransitionClassifier ||
                     TransitionClassifier != null &&
                     TransitionClassifier.Equals(other.TransitionClassifier)
                 ) &&
                 (
                     TransitionTime == other.TransitionTime ||
                     TransitionTime != null &&
                     TransitionTime.Equals(other.TransitionTime)
                 ) &&
                 (
                     TriggerName == other.TriggerName ||
                     TriggerName != null &&
                     TriggerName.Equals(other.TriggerName)
                 ));
        }