コード例 #1
0
        public override Transaction UnmarshalTransaction()
        {
            Transaction transaction;

            if (!TransactionCache <string, Transaction> .Find(this.context.Identifier, out transaction))
            {
                transaction = this.wsatProxy.UnmarshalTransaction(this);
                new WsatExtendedInformation(this.context.Identifier, this.context.Expires).TryCache(transaction);
                WsatIncomingTransactionCache.Cache(this.context.Identifier, transaction);
            }
            return(transaction);
        }
コード例 #2
0
        public override Transaction UnmarshalTransaction()
        {
            Transaction tx;

            if (WsatIncomingTransactionCache.Find(this.context.Identifier, out tx))
            {
                return(tx);
            }

            tx = this.wsatProxy.UnmarshalTransaction(this);

            // Cache extended information for subsequent marshal operations
            WsatExtendedInformation info = new WsatExtendedInformation(context.Identifier, context.Expires);

            info.TryCache(tx);

            // Cache the unmarshalled transaction for subsequent unmarshal operations
            WsatIncomingTransactionCache.Cache(this.context.Identifier, tx);

            return(tx);
        }
コード例 #3
0
ファイル: TransactionCache.cs プロジェクト: dox0/DotNet471RS3
        public static void Cache(string identifier, Transaction tx)
        {
            WsatIncomingTransactionCache entry = new WsatIncomingTransactionCache();

            entry.AddEntry(tx, identifier, tx);
        }