public TableListener(string adapter, string channel, string topic, int phase, IJsonSerializer serializer) { _adapter = adapter; _channel = channel; _serializer = serializer; _messageConverter = new LightstreamerDtoConverter <TDto>(_serializer); _phase = phase; _topic = topic; }
/// <summary> /// /// </summary> /// <param name="topic"></param> /// <param name="mode"></param> /// <param name="snapshot"></param> /// <param name="client"></param> /// <param name="serializer"></param> public ListenerAdapter(string topic, string mode, bool snapshot, IFaultTolerantLsClientAdapter client, IJsonSerializer serializer) { _serializer = serializer; _messageConverter = new LightstreamerDtoConverter <TDto>(_serializer); Topic = topic; _lsClient = client; _adapterSet = client.AdapterSet; _channel = topic.Split('.').First(); _groupOrItemName = topic.Replace(_channel + ".", ""); _mode = mode; _snapshot = snapshot; }
public void SetUp() { _testDtoConverter = new LightstreamerDtoConverter<TestDto>(); }