Пример #1
0
        public ExecuteOpRequestedEvent <TOperation> DeepCloneWithOperation(TOperation operation)
        {
            var result = new ExecuteOpRequestedEvent <TOperation>(
                operation,
                this.TimestampUtc.DeepClone(),
                this.Details?.DeepClone());

            return(result);
        }
Пример #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);
        }