예제 #1
0
 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);
 }
예제 #3
0
 private static Task ProcessQueue(AsyncListProcessorItemEventArgs<TraceMessage> args)
 {
     if(args != null && args.Item != null && TraceMessageRaised != null)
     {
         TraceMessageRaised(args.Item);
     }
     return Task.FromResult(true);
 }