public MoexInfoCXConnector(MoexInfoCXParameters parameters) { _parameters = parameters; _feed = new MoexInfoCXFeed(parameters); ConnectionStatusProviders = new IConnectionStatusProvider[] { _feed }; }
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; }