public Level1DynamicSnapshot(
     SocketClient socketClient,
     Level1RequestFormatter level1RequestFormatter,
     ILevel1DynamicMessageHandler level1DynamicMessageHandler,
     TimeSpan timeout)
 {
     _timeout                = timeout;
     _socketClient           = socketClient;
     _level1RequestFormatter = level1RequestFormatter;
     _level1MessageHandler   = level1DynamicMessageHandler;
 }
        public static ILevel1DynamicClient CreateNew(string host, int port, TimeSpan snapshotTimeout, ILevel1DynamicMessageHandler level1DynamicMessageHandler, params DynamicFieldset[] fieldNames)
        {
            var socketClient           = new SocketClient(host, port);
            var level1RequestFormatter = new Level1RequestFormatter();

            return(new Level1DynamicClient(
                       socketClient,
                       level1RequestFormatter,
                       level1DynamicMessageHandler,
                       new Level1DynamicSnapshot(socketClient, level1RequestFormatter, level1DynamicMessageHandler, snapshotTimeout),
                       fieldNames
                       ));
        }
Пример #3
0
 public void SetUp()
 {
     _level1RequestFormatter = new Level1RequestFormatter();
 }