/// <inheritdoc/>
            public override bool Equals(object obj)
            {
                var other = obj as BeginHandOffAck;

                if (ReferenceEquals(other, null))
                {
                    return(false);
                }
                if (ReferenceEquals(other, this))
                {
                    return(true);
                }

                return(Shard.Equals(other.Shard));
            }
            /// <inheritdoc/>
            public override bool Equals(object obj)
            {
                var other = obj as ShardStopped;

                if (ReferenceEquals(other, null))
                {
                    return(false);
                }
                if (ReferenceEquals(other, this))
                {
                    return(true);
                }

                return(Shard.Equals(other.Shard));
            }
            /// <inheritdoc/>
            public override bool Equals(object obj)
            {
                var other = obj as ShardHomeAllocated;

                if (ReferenceEquals(other, null))
                {
                    return(false);
                }
                if (ReferenceEquals(other, this))
                {
                    return(true);
                }

                return(Shard.Equals(other.Shard) &&
                       Region.Equals(other.Region));
            }
Esempio n. 4
0
            /// <inheritdoc/>
            public override bool Equals(object obj)
            {
                var other = obj as StartEntityAck;

                if (ReferenceEquals(other, null))
                {
                    return(false);
                }
                if (ReferenceEquals(other, this))
                {
                    return(true);
                }

                return(EntityId.Equals(other.EntityId) &&
                       ShardId.Equals(other.ShardId));
            }