コード例 #1
0
 public Task Handle(InventoryNotificationReceived notification, CancellationToken cancellationToken)
 {
     HandledInventoryNotificationReceived++;
     return(Task.FromResult(0));  // This is called twice.
 }
コード例 #2
0
 public Task <EmptyResponse> Handle(InventoryNotificationReceived notification, CancellationToken cancellationToken)
 {
     HandledInventoryNotificationReceived++;
     return(EmptyResponse.Task); // This is called twice.
 }