Esempio n. 1
0
        public async Task Test()
        {
            var factory    = new SimpleConnectionFactory();
            var endPoint   = new IPEndPoint(IPAddress.Loopback, 6379);
            var connection = new LoggingConnection(
                (await factory.CreateAsync(endPoint).ConfigureAwait(false)).Value
                );

            var transaction = new SimpleTransaction(
                new BulkConnection(
                    connection
                    )
                );

            var key1 = transaction.Enqueue(new GET("key1"));
            var key2 = transaction.Enqueue(new GET("key2"));

            await transaction.ExecuteAsync().ConfigureAwait(false);

            key1.Result.Should().Be(
                new PlainBulkString("100")
                );
        }
Esempio n. 2
0
 public Fixture(Connection connection)
 {
     this.connection = new LoggingConnection(connection);
 }