/// <summary> /// Enqueues events with increasing 'X' values and with CTIs after every insert. /// </summary> /// <param name="address">Input adapter service address.</param> private static void ProduceEvents(Uri address) { ClientPointInputAdapter clientAdapter = new ClientPointInputAdapter(address); int x = 0; DateTimeOffset startTime = DateTimeOffset.UtcNow; while (clientAdapter.TryEnqueueCtiEvent(startTime) && clientAdapter.TryEnqueueInsertEvent(startTime, new Dictionary <string, object> { { "X", x } })) { startTime += TimeSpan.FromTicks(1); x++; } }
/// <summary> /// Enqueues events with increasing 'X' values and with CTIs after every insert. /// </summary> /// <param name="address">Input adapter service address.</param> private static void ProduceEvents(Uri address) { ClientPointInputAdapter clientAdapter = new ClientPointInputAdapter(address); int x = 0; DateTimeOffset startTime = DateTimeOffset.UtcNow; while (clientAdapter.TryEnqueueCtiEvent(startTime) && clientAdapter.TryEnqueueInsertEvent(startTime, new Dictionary<string, object> { { "X", x } })) { startTime += TimeSpan.FromTicks(1); x++; } }