/// <summary> /// Add an event to the queue, return immediately /// </summary> public void Input(Payload payload) { _queue.Enqueue(new List <Payload>() { payload }); }
public void Produce() { for (int i = 0; i < _count; i++) { var dict = new Dictionary <string, string>(); dict.Add("hello", "world"); var samplePayload = new Payload(); samplePayload.AddDict(dict); var payload = new List <Payload>(); payload.Add(samplePayload); _q.Enqueue(payload); } }