private static Task ProcessQueue(AsyncListProcessorItemEventArgs <TraceMessage> args) { if (args?.Item != null) { TraceMessageRaised?.Invoke(args.Item); } return(Task.FromResult(true)); }
private Task processItem(AsyncListProcessorItemEventArgs<AsyncListTestObject> e) { e.Item.SetResult(true); return Task.FromResult(true); }
private static Task ProcessQueue(AsyncListProcessorItemEventArgs<TraceMessage> args) { if(args != null && args.Item != null && TraceMessageRaised != null) { TraceMessageRaised(args.Item); } return Task.FromResult(true); }