public async Task ShouldRetrievePendingTransaction()
        {
            string receivedMessage = null;
            var    subscription    = new EthNewPendingTransactionSubscription(StreamingClient);

            subscription.SubscriptionDataResponse += delegate(object sender, StreamingEventArgs <string> args)
            {
                receivedMessage = args.Response;
            };

            await subscription.SubscribeAsync(Guid.NewGuid().ToString());

            try
            {
                await Task.Delay(10000);
            }
            catch (TaskCanceledException)
            {
                // swallow, escape hatch
            }

            Assert.NotNull(receivedMessage);
        }
 public EthSubscriptionService(IStreamingClient client) : base(client)
 {
     NewPendingTransactionSubscription = new EthNewPendingTransactionSubscription(client);
     NewBlockHeadersSubscription       = new EthNewBlockHeadersSubscription(client);
 }
 public override async Task ExecuteAsync(IStreamingClient client)
 {
     var subscription = new EthNewPendingTransactionSubscription(client);
     await subscription.SubscribeAsync(Guid.NewGuid().ToString());
 }