public async Task<TakeOwnershipResponse> Handle(TakeOwnershipRequest request)
        {
            var status = await _controller.TakeOwnership(request.Subject).ConfigureAwait(false);

            var response = new TakeOwnershipResponse
            {
                NodeId = _graph.NodeId,
                Status = status,
                Subject = request.Subject
            };

            _logger.InfoMessage(() => new TakeOwnershipRequestReceived(request.Subject, _envelope.ReplyUri)
            {
                Status = response.Status
            });

            return response;
        }
Exemple #2
0
        public async Task <TakeOwnershipResponse> Handle(TakeOwnershipRequest request)
        {
            var status = await _controller.TakeOwnership(request.Subject).ConfigureAwait(false);

            var response = new TakeOwnershipResponse
            {
                NodeId  = _graph.NodeId,
                Status  = status,
                Subject = request.Subject
            };

            _logger.InfoMessage(() => new TakeOwnershipRequestReceived(request.Subject, _envelope.ReplyUri)
            {
                Status = response.Status
            });

            return(response);
        }