public MoveActor(MoveRequest request) { _model = request; _stationCoordinator = Context.ActorSelection($"/user/StationCoordinatorActor"); Console.WriteLine($"move {_model.Id} created."); Receive<AcceptMessage>(m => OnReceivedAcceptMessage(m)); Receive<RejectMessage>(m => OnReceivedRejectMessage(m)); Receive<CompleteMessage>(m => OnReceivedCompleteMessage(m)); _stationCoordinator.Tell(new StationCoordinatorActor.TransferRequestedMessage(_model)); }
public TransferCompletedMessage(MoveRequest move) { Move = move; }
public TransferRejectedMessage(MoveRequest move) { Move = move; }
public TransferAcceptedMessage(MoveRequest move) { Move = move; }
public MoveRequest Create(MoveRequest request) { _db.Add(request); request.Id = _db.Count; return request; }