示例#1
0
        public void AddSubscriber(IRawMessageSubscriber subscriber)
        {
            if (subscriber == null)
            {
                throw new ArgumentNullException(nameof(subscriber));
            }

            Subscribers.AddFirst(subscriber);
            RawDataPublish += subscriber.OnRawDataPublish;
        }