Example #1
0
        /// <summary>
        /// Returns the hash code for this instance.
        /// </summary>
        public override Int32 GetHashCode()
        {
            unchecked
            {
                var hash = 43;

                hash = (hash * 397) + SagaType.GetHashCode();
                hash = (hash * 397) + SagaId.GetHashCode();

                return(hash);
            }
        }
 static bool IsSagaType(Type t)
 {
     return(SagaType.IsAssignableFrom(t) && t != SagaType && !t.IsGenericType);
 }