ActorTask.cs 478 B

1234567891011121314151617181920212223
  1. using System.Threading.Tasks;
  2. namespace ETModel
  3. {
  4. public struct ActorTask
  5. {
  6. public IActorRequest ActorRequest;
  7. public TaskCompletionSource<IActorLocationResponse> Tcs;
  8. public ActorTask(IActorLocationMessage actorRequest)
  9. {
  10. this.ActorRequest = actorRequest;
  11. this.Tcs = null;
  12. }
  13. public ActorTask(IActorLocationRequest actorRequest, TaskCompletionSource<IActorLocationResponse> tcs)
  14. {
  15. this.ActorRequest = actorRequest;
  16. this.Tcs = tcs;
  17. }
  18. }
  19. }