コード例 #1
0
        private bool ProcessSecurityLookup(SecurityLookupMessage msg)
        {
            if (msg == null)
            {
                throw new ArgumentNullException(nameof(msg));
            }

            if (msg.Adapter != null && msg.Adapter != this)
            {
                return(base.OnSendInMessage(msg));
            }

            foreach (var security in _securityStorage.Lookup(msg))
            {
                RaiseNewOutMessage(security.ToMessage(originalTransactionId: msg.TransactionId));
            }

            return(base.OnSendInMessage(msg));
        }
コード例 #2
0
        private bool ProcessSecurityLookup(SecurityLookupMessage msg)
        {
            if (msg == null)
            {
                throw new ArgumentNullException(nameof(msg));
            }

            if (/*!msg.IsSubscribe || */ (msg.Adapter != null && msg.Adapter != this))
            {
                return(base.OnSendInMessage(msg));
            }

            var transId = msg.TransactionId;

            foreach (var security in _securityStorage.Lookup(msg))
            {
                RaiseNewOutMessage(security.ToMessage(originalTransactionId: transId).SetSubscriptionIds(subscriptionId: transId));
            }

            return(base.OnSendInMessage(msg));
        }