Ejemplo n.º 1
0
        public ExecuteOpRequestedEvent <TOperation> DeepCloneWithOperation(TOperation operation)
        {
            var result = new ExecuteOpRequestedEvent <TOperation>(
                operation,
                this.TimestampUtc.DeepClone(),
                this.Details?.DeepClone());

            return(result);
        }
Ejemplo n.º 2
0
        /// <inheritdoc />
        public bool Equals(ExecuteOpRequestedEvent <TOperation> other)
        {
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

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

            var result = this.TimestampUtc.IsEqualTo(other.TimestampUtc) &&
                         this.Operation.IsEqualTo(other.Operation) &&
                         this.Details.IsEqualTo(other.Details, StringComparer.Ordinal);

            return(result);
        }