Ejemplo n.º 1
0
        public async Task <TaskDeactivationResponse> Handle(TaskDeactivation deactivation)
        {
            var status = await _controller.Deactivate(deactivation.Subject).ConfigureAwait(false);

            return(new TaskDeactivationResponse {
                Subject = deactivation.Subject, Success = status
            });
        }
Ejemplo n.º 2
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
                 });
 }
        public async Task<TaskDeactivationResponse> Handle(TaskDeactivation deactivation)
        {
            var status = await _controller.Deactivate(deactivation.Subject).ConfigureAwait(false);

            return new TaskDeactivationResponse {Subject = deactivation.Subject, Success = status};
        }
Ejemplo n.º 5
0
 protected bool Equals(TaskDeactivation other)
 {
     return Equals(Subject, other.Subject);
 }
Ejemplo n.º 6
0
 protected bool Equals(TaskDeactivation other)
 {
     return(Equals(Subject, other.Subject));
 }