Beispiel #1
0
 public Task <TaskDeactivationResponse> Handle(TaskDeactivation deactivation)
 {
     return
         (_controller.Deactivate(deactivation.Subject)
          .ContinueWith(
              t => new TaskDeactivationResponse
     {
         Subject = deactivation.Subject,
         Success = t.Result
     }));
 }
 public Task<TaskDeactivationResponse> Handle(TaskDeactivation deactivation)
 {
     return
         _controller.Deactivate(deactivation.Subject)
             .ContinueWith(
                 t => new TaskDeactivationResponse
                 {
                     Subject = deactivation.Subject,
                     Success = t.Result
                 });
 }
 protected bool Equals(TaskDeactivation other)
 {
     return Equals(Subject, other.Subject);
 }
 protected bool Equals(TaskDeactivation other)
 {
     return(Equals(Subject, other.Subject));
 }