コード例 #1
0
ファイル: TableListener.cs プロジェクト: fagan2888/CIAPI.CS
 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;
 }
コード例 #2
0
ファイル: ListenerAdapter.cs プロジェクト: fagan2888/CIAPI.CS
        /// <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;
        }
コード例 #3
0
 public void SetUp()
 {
     _testDtoConverter = new LightstreamerDtoConverter<TestDto>();
 }