예제 #1
0
        public SubscriptionStatusEventArgs(Message msg)
        {
            Id = msg.CorrelationID;

            Topic = msg.TopicName;

            if (msg.HasElement(Settings.Default.Bloomberg_Name_Reason))
            {
                Reason = new SubscriptionStatusReason(msg.GetElement(Settings.Default.Bloomberg_Name_Reason));
            }

            if (msg.HasElement(Settings.Default.Bloomberg_Name_Exceptions))
            {
                Exceptions = new SubscriptionStatusExceptions(msg.GetElement(Settings.Default.Bloomberg_Name_Exceptions));
            }
        }
        public SubscriptionStatusEventArgs(Message msg)
        {
            Id = msg.CorrelationID;

            Topic = msg.TopicName;

            if (msg.HasElement(Settings.Default.Bloomberg_Name_Reason))
            {
                Reason = new SubscriptionStatusReason(msg.GetElement(Settings.Default.Bloomberg_Name_Reason));
            }

            if (msg.HasElement(Settings.Default.Bloomberg_Name_Exceptions))
            {
                Exceptions = new SubscriptionStatusExceptions(msg.GetElement(Settings.Default.Bloomberg_Name_Exceptions));
            }
        }