private void EnqueueMessages() { foreach (string element in toQueue.Invoke(ref stringBuffer)) { completeMessages.Enqueue(element); } }
//For call event from Seller public void CallToQueue() { if (ToQueue == null) { System.Console.WriteLine("RIP event"); } ToQueue?.Invoke(this); }