コード例 #1
0
        public async Task GoOnline(LocationDto locationDto)
        {
            string connectionId = Context.ConnectionId;

            locationDto.ConnectionId = connectionId;
            var location = _LocationService.UpdateDeliveryLocation(locationDto);

            _delivererService.UpdateDeliveryStatus(locationDto.DelivererId, "online");

            await Clients.Client(connectionId).SendAsync("ReceiveMessage", "you are online");
        }
コード例 #2
0
 public IActionResult UpdateDeliveryStatus(int id, string status)
 {
     _delivererService.UpdateDeliveryStatus(id, status);
     return(Ok());
 }