public override void PreProcess(IFeatureChain currentChain, FeatureAccount featureAccount, Transaction transaction, FeatureData featureData) { var feature = featureData as AccountIndexBase; var featureId = featureData.FeatureId; var accountId = featureAccount.AccountId; var container = featureAccount.GetFeatureContainer <AccountIndexContainerBase>(featureId); if (container != null) { var info = container.GetLastTransactionInfo(feature.Index); _lastTransactionIdLookup.Set(accountId, info.TransactionId); _lastTransactionCountLookup.Set(accountId, info.Count); } }
public override void PreProcess(IFeatureChain featureChain, FeatureAccount featureAccount, Transaction transaction, FeatureData transactionFeature) { if (featureAccount == null) // Join { return; } var featureId = transactionFeature.FeatureId; var accountId = featureAccount.AccountId; var container = featureAccount.GetFeatureContainer <PreviousAccountTransactionContainer>(featureId); if (container != null) { var info = container.LastTransactionInfo; _lastTransactionIdLookup.Set(accountId, info.TransactionId); _lastTransactionCountLookup.Set(accountId, info.Count); } }