示例#1
0
        public MoexInfoCXConnector(MoexInfoCXParameters parameters)
        {
            _parameters = parameters;

            _feed = new MoexInfoCXFeed(parameters);
            ConnectionStatusProviders = new IConnectionStatusProvider[] { _feed };
        }
示例#2
0
        public MoexInfoCXFeed(MoexInfoCXParameters settings)
        {
            this.settings = settings;

            connection = new StompConnection(
                new Uri(settings.BrokerUrl),
                new WebsocketTransportFactory(transportSettings),
                new StompWireFormat(),
                new StompLogger(Logger)
                );


            connection.MessageReceived += Connection_MessageReceived;
            connection.StateChanged    += Connection_StateChanged;
        }