Пример #1
0
        public TraceTransactionId GetThisAsTraceId(DateTime?atTime = null, IVoca journalName = null)
        {
            var dt = atTime ?? AtTime;

            //get copy of myself as a transaction id
            var innerTrace = new TraceTransactionId(this, dt);

            //with this, consider linked-list of trace as journal -> myself -> my-trace
            if (journalName != null && journalName.AnyNames())
            {
                innerTrace = new TraceTransactionId(this, dt, journalName)
                {
                    Trace = new TraceTransactionId(this)
                };
            }

            return(innerTrace);
        }
Пример #2
0
 protected internal bool IsDuplicate(IAccount <Identifier> toAccount, TraceTransactionId incomingTransaction)
 {
     return(toAccount.AnyTransaction(tr => tr.Trace.UniqueId == incomingTransaction.UniqueId));
 }