public void TryCache(Transaction tx)
        {
            Guid   distributedIdentifier = tx.TransactionInformation.DistributedIdentifier;
            string str = IsNativeIdentifier(this.identifier, distributedIdentifier) ? null : this.identifier;

            if (!string.IsNullOrEmpty(str) || (this.timeout != 0))
            {
                WsatExtendedInformationCache.Cache(tx, new WsatExtendedInformation(str, this.timeout));
            }
        }
        public void TryCache(Transaction tx)
        {
            Guid   transactionId   = tx.TransactionInformation.DistributedIdentifier;
            bool   nativeId        = IsNativeIdentifier(this.identifier, transactionId);
            string cacheIdentifier = nativeId ? null : this.identifier;

            if (!string.IsNullOrEmpty(cacheIdentifier) || this.timeout != 0)
            {
                // Cache extended information for subsequent marshal operations
                WsatExtendedInformationCache.Cache(tx, new WsatExtendedInformation(cacheIdentifier,
                                                                                   this.timeout));
            }
        }