コード例 #1
0
        public bool Equals(GrainReference other)
        {
            if (other == null)
            {
                return(false);
            }

            if (genericArguments != other.genericArguments)
            {
                return(false);
            }
            if (!GrainId.Equals(other.GrainId))
            {
                return(false);
            }
            if (IsSystemTarget)
            {
                return(Equals(SystemTargetSilo, other.SystemTargetSilo));
            }
            if (IsObserverReference)
            {
                return(observerId.Equals(other.observerId));
            }
            return(true);
        }
コード例 #2
0
ファイル: GrainReference.cs プロジェクト: tcunning/orleans
        public bool Equals(GrainReference other)
        {
            if (other == null)
            {
                return(false);
            }

            if (genericArguments != other.genericArguments)
            {
                return(false);
            }

            return(Equals(SystemTargetSilo, other.SystemTargetSilo) && GrainId.Equals(other.GrainId));
        }